GO KALI FREE
Navigation Commands

popd Linux Command

Returns to the directory saved by the last pushd command.

What does popd do?

Returns to the directory saved by the last pushd command.

Syntax

popd

Practical example

popd

Related Navigation Commands

pushd

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

dirs

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

cd -

Switches back to the previous working directory.

pwd

Prints the current working directory (full path from root).

cd ~

Changes to the current user's home directory.

ls

Lists files and directories in the current directory.