See the UNIX Programmers Manual or via % man csh
% dirs
will display the current directory stack, for example:
~/mans/allexams/csh ~/newsletter ~/news
A "popd" will in this case remove ~/mans/allexams/csh from the stack,
and change directories to ~/newsletter.
A "pushd" in this case will swap the first two entries
(~/mans/allexams/csh and ~/newsletter) and change directories
to ~/newsletter.
Another subsequent "pushd" will swap them back and return the current
directory to ~/mans/allexams/csh.
To Index