Command line
pwd
pwd
: print working directory.
The pwd
command is used to print the current working directory. It shows the full path of the directory you are currently in. This command is helpful when navigating through the file system, as it allows you to keep track of your current location.
Examples
Linux/macOS
In this example, pwd
prints the full path of the current working directory, which is /home/user/project
:
pwd
Result:
/home/user/project
Windows (PowerShell)
PowerShell's pwd
command outputs the current working directory in a slightly different format, showing the label Path, followed by the directory path:
pwd
Result:
Path
----
C:\Users\user\project
© 2024-2025 GitByBit.All rights reserved.