May 2017
Beginner
552 pages
28h 47m
English
The pushd and popd commands replace cd for changing your working directory.
~ $ pushd /var/www
Now the stack contains /var/www ~ and the current directory is changed to /var/www.
/var/www $ pushd /usr/src
Now the stack contains /usr/src/var/www ~ and the current directory is /usr/src.
You can push as many directory paths as needed.
$ dirs
/usr/src /var/www ~ /usr/share /etc
0 1 2 3 4
$ pushd +3
Now it will rotate the stack and ...