Pwd (PrintWorkingDirectory) Name: pwd-printnameofcurrent/workingdirectory enter the current working path syntax: pwd [option] parameter: -- help -- version instance: 1) display the current working path [root @ localhost ~] # Pwd/roo
Pwd (Print Working Directory)
Name:Pwd-print name ofcurrent/working directory enter the current working path
Syntax:Pwd [option]
Parameters:-- 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.