dirs Linux Command
Displays the directory stack (list of directories saved with pushd).
What does dirs do?
Displays the directory stack (list of directories saved with pushd).
Syntax
dirs [options]Practical example
dirs -vRelated Navigation Commands
popdReturns to the directory saved by the last pushd command.
pwdPrints the current working directory (full path from root).
pushdSaves the current directory and then changes to the specified directory.
lsLists files and directories in the current directory.
cd -Switches back to the previous working directory.
cdChanges the current working directory to the specified path.