Pwd (Print Working Directory)
Name: pwd-print name ofcurrent/working directory enter the current working path
Syntax: pwd [option]
Parameter: -- help -- version
Instance:
1) display the current working path
[Root @ localhost ~] # Pwd
/Root
2) display the actual directory of the soft connection, rather than the directory of the soft connection. Parameter-P
[Root @ localhostnetwork-scripts] # cd/etc/init. d
Root@localhostinit.d # pwd
/Etc/init. d
[Root@localhostinit.d] # pwd-P
/Etc/rc. d/init. d
3) The pwd error shows the deleted directory.
[Root @ localhost init. d] # cd/opt/soft
[Root @ localhost soft] # mkdir removed
[Root @ localhost soft] # cd removed/
[Root @ localhost removed] # pwd
/Opt/soft/removed
[Root @ localhost removed] # rm ../removed-rf
[Root @ localhost removed] # pwd
/Opt/soft/removed
[Root @ localhost removed] #/bin/pwd
/Bin/pwd: couldn't find directory entry in ".." with matching I-node
[Root @ localhost removed] # cd
[Root @ localhost ~] # Pwd
/Root
[Root @ localhost ~] #
---------------------------- Subsequent self-Summary ----------------------------------
The pwd command should also be less functional, that is, to check where our current directory is and where the real-P directory is.