- Published on
pwd command-display current path
Jonas
1 min read
The pwd command is the acronym of each word in "print working directory", and its function is the same as the word shown. It is to print the working directory, that is, to display the absolute path of the current working directory.
In actual work, we often switch between different directories. In order to prevent "lost", we can use the pwd command to quickly view the directory path where we are currently located.
Syntax: pwd [parameter]
Command parameters
-L | Show logical path |
Example
View the current working directory path:
[root@linuxstar ~]# pwd /home/linuxstar