GO KALI FREE
Navigation Commands

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.

pushd

Saves the current directory and then changes to the specified directory.

cd ..

Moves up one directory level (to the parent directory).

popd

Returns to the directory saved by the last pushd command.

cd

Changes the current working directory to the specified path.

dirs

Displays the directory stack (list of directories saved with pushd).