Using Linux pwd command to print current working directory
Using Linux pwd command to print current working directory.
What is Linux pwd command? The pwd is the Linux command that can be use to print current working directory. The pwd command are called “print working directory” because the pwd command output show where you are currently on the system. Once you're login on the Linux system, you're automatically taken into your home directory, which is usually reside inside /home/"user_name" directory for normal user or /root if you're root user on the system. The home directory usually contains the user data (user files, folder/directory etc) and user personal data setting (browser setting, editor setting etc). The example below show step by step using Linux pwd command and show the output from the pwd command, just type in pwd in your shell (Linux command prompt) and hit 'Enter' key to execute the pwd command.
Linux pwd command output example:

[fedora11@fedora11 ~]$ pwd
/home/fedora11 <= your current working directory inside /home/fedora11 directory
[fedora11@fedora11 ~]$
pwd command options:
-L, --logical => use PWD from environment, even if it contains symlinks
-P, --physical => avoid all symlinks
Linux pwd command is a shell builtin command.
[fedora11@fedora11 ~]$ type pwd
pwd is a shell builtin
[fedora11@fedora11 ~]$
Keywords: linux pwd command, using pwd command, pwd command, print current working directory, using pwd command
- Add new comment
- 671 reads
- Tell your friends

Recent comments
17 weeks 36 min ago
21 weeks 2 days ago
21 weeks 2 days ago
24 weeks 6 days ago
24 weeks 6 days ago
30 weeks 15 hours ago
30 weeks 19 hours ago
30 weeks 1 day ago