cd - Linux Command
Switches back to the previous working directory.
What does cd - do?
Switches back to the previous working directory.
Syntax
cd -Practical example
cd -Related Navigation Commands
cd ~Changes to the current user's home directory.
pushdSaves the current directory and then changes to the specified directory.
cd ..Moves up one directory level (to the parent directory).
popdReturns to the directory saved by the last pushd command.
cdChanges the current working directory to the specified path.
dirsDisplays the directory stack (list of directories saved with pushd).