GO KALI FREE
Navigation Commands

cd ~ Linux Command

Changes to the current user's home directory.

What does cd ~ do?

Changes to the current user's home directory.

Syntax

cd ~

Practical example

cd ~

Related Navigation Commands

cd ..

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

cd -

Switches back to the previous working directory.

cd

Changes the current working directory to the specified path.

pushd

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

ls

Lists files and directories in the current directory.

popd

Returns to the directory saved by the last pushd command.