Previous | Table of Contents | Next |
DESCRIPTION
The internal dirs command displays the directory stack created by the pushd command. The dirs command does not manipulate the directory stack. It only displays the contents. You will find it useful if you use the pushd and popd commands.
COMMAND FORMAT
The format of the dirs command follows .
dirs
TIP
Most users of the csh alias the pushd , popd , and dirs commands. For example, you might want to add the following lines to your . cshrc file.
alias u pushd # use u instead of pushd alias o popd # use o instead of popd alias d dirs # use d instead of dirs
NOTE:
Some sites implement the pushd, popd, and dirs command for the ksh. Ask your system administrator, if you use ksh, if the commands are available.
RELATED COMMANDS
Refer to the popd and pushd commands described in modules 104 and 110.
APPLICATIONS
The dirs command is simply used to display the directory stack without manipulating it. The directory stack contains a list of directories you can move between by using the pushd or popd commands.
TYPICAL OPERATION
In this activity you use the dirs command to display the directory stack. Begin at the shell prompt.
cj> dirs ~ /usr/spool/uucppublic /usr/lib
Previous | Table of Contents | Next |