The pwd command in Linux and Unix-like systems stands for “print working directory”. It is used to display the path of the current working directory that you are in.
For example, if you are currently in the “Mail” directory located in your home directory, the pwd command will display the path “/home/great-user/Mail”.
1. Here is an example of the “pwd” command:
$ pwd /home/great-user
In the above example, the output shows that the current working directory is “/home/great-user”.
2. Another example:
$ cd /var/log $ pwd /var/log
In this example, the cd command is used to change the working directory to “/var/log” and then pwd command is used to show the current working directory is “/var/log”.
Please refer to the following page that relates to syntax and usage of the cd command.