Account
Categories

pwd command


Definition:

The pwd command stands for Print Working Directory. When you run this command, it shows the full path of the directory you are currently working in. It does not modify anything; it only tells you your current location in the file system.


Syntax:

pwd
    

Example:

Command:

$ pwd
    

Output:

/home/user/Documents
    

Explanation:

  • You are inside a folder on your system, but you might not know its exact location.
  • When you run pwd, it shows the complete path of that folder.
  • In this example, the current directory is /home/user/Documents.
  • It doesn’t change files or directories, it simply displays your current working directory.