User Tools

Site Tools


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

In the above example, the output shows that the current working directory is “/home/great-user”.

2. Another example:

$ cd /var/log
$ pwd

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.

unix_commands/pwd.txt · Last modified: 2023/01/15 15:21 by admin

CIFNet is a leading hosting solution provider, offering a wide range of services including IP bandwidth, co-location, VMware and KVM hosting.
Host Your Site with CIFNet!