pwd

pwd (Print Working Directory): The pwd command in Linux displays the full pathname of the current working directory. It tells you exactly where you are in the file system hierarchy, starting from the root (/) to your current directory.

Usage:

  • pwd: Simply type pwd and press Enter to see the absolute path of your current directory.

Example:

pwd
# Output: /home/user/Documents

In this example, pwd shows that the current working directory is /home/user/Documents.

The pwd command is essential for confirming your location in the file system, especially when navigating through directories using commands like cd.

Leave a Reply

Your email address will not be published. Required fields are marked *