Linux pwd command

|

What is the pwd Command?

The pwd command stands for Present Working Directory. When you run the pwd command, it displays your current directory.

Syntax:

pwd

Example:

Command:

$ pwd

Output:

/home/user/Documents

Explanation:

  • Running the pwd command displays the full path of the directory you are currently in.
  • You might be inside a folder but not know its exact location. For example, you could be in /home/user/Documents.
  • The pwd command shows this complete path and does not change anything; it only tells you your current location in the file system.

ONLINE WEB TOOLS

WhatIsMyIpAddress
Shorterner