August 2000
Intermediate to advanced
816 pages
29h 45m
English
pushd
pushd name
pushd [options]
pushd
The first form changes the working directory to name and adds it to the directory stack. The second form rotates the nth entry to the beginning, making it the working directory. (Entry numbers begin at 0.) With no arguments, pushd switches the first two entries and changes to the new current directory. The +n, -l, -n, and -v options behave the same as in popd. See also dirs and popd.
%dirs/home/bob /usr %pushd /etcAdd /etc to directory stack /etc /home/bob /usr %pushd +2Switch to third directory /usr /etc /home/bob %pushdSwitch top two directories /etc /usr /home/bob %popdDiscard current entry; go to next /usr /home/bob
Read now
Unlock full access