-
pwd – Linux Command to Print Working Directory
Posted on March 9th, 2009 No commentspwd is a Linux / Unix command which prints the current working directory. If you wish to know the full path of the directory in which you are in from the Linux console, then the
pwdcommand will come to your rescue.pwdstands for Print Working Directory.If you check the man page of
pwdin Linux, you won\’t find any options for it. But in reality,pwddoes have one option called-P, which lists the current working directory with all the links resolved.Usage of pwd command
I have a directory called \”
Examples/\” on my machine which is actually a soft link to the directory/usr/share/example-content/. If you are using Ubuntu Linux, you will also have this directory on your machine in your Home folder.I move into the \”
Examples/\” directory and run thepwdcommand to get the following output.$ cd Examples $ pwd /home/laf/Examples
Now if I pass the option
-Pwithpwd, it will list the physical current working directory with all the links resolved.$ pwd -P /usr/share/example-content
Related Posts
- How to print a man page from the command line in Linux
- Search for files in Linux using the locate command
- tar command in Linux
- Mogrify – How to resize images from the command line
- How to install fonts in Linux – Ubuntu, Debian










