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:
pwdResult:
/home/user/projectWindows (PowerShell)
PowerShell's pwd command outputs the current working directory in a slightly different format, showing the label Path, followed by the directory path:
pwdResult:
Path
----
C:\Users\user\projectGetting started
Key concepts
Git commands
Basics
git initgit addgit commitgit helpBranches
git branchgit switchgit mergegit rebaseStatus/History
git statusgit loggit diffgit showgit blamegit reflogReverting
git resetgit restoregit revertgit cleangit stashRemote repositories
git clonegit fetchgit pullgit pushgit remoteOther
.gitignore filegit checkoutgit configgit taggit worktreeGreat job!
You have unlocked all of the Gitopedia entries!