Linux - ?pwd Command in Linux
The pwd command stands for Print Working Directory.
It is used to display the full path of the directory you are currently in.
What It Does
When you type pwd, it shows your current directory location in the Linux file system.
Example
pwd
Output:
/home/user/Documents
This means your terminal is currently inside the Documents folder of the user directory.
When It Is Useful
-
When you get lost in deeply nested directories
-
When writing scripts that depend on directory paths
-
When working with multiple terminals