What does pwd command do?

The pwd command stands for "print working directory." It displays the full path of the directory you are currently in within the file system. This command is essential for navigation, as it helps you understand your current location before executing other commands.

To use it, simply type pwd in the terminal and press Enter:

pwd

The output will show the path, for example:

/home/labex/project

This indicates that you are in the project directory, which is inside the labex directory, located in the home directory.

0 Comments

no data
Be the first to share your comment!