www.LinuxHowtos.org
Quick 'cd' trick
To return to the previous directory in the shell (bash, ksh, zsh, etc), use cd -
Code Listing 1
$ pwd /home/rd $ cd /tmp $ cd - $ pwd /home/rd
From http://www.gentoo.org/news/en/gwn/20040524-newsletter.xml
backTo return to the previous directory in the shell (bash, ksh, zsh, etc), use cd -
Code Listing 1
$ pwd /home/rd $ cd /tmp $ cd - $ pwd /home/rd
From http://www.gentoo.org/news/en/gwn/20040524-newsletter.xml
back