2019-07-30
pwd 显示当前所在目录位置
pwd 与pwd -L效果相同
[root@localhost run]# pwd /var/run [root@localhost run]# pwd -L /var/run
pwd -P 在链接目录内,可以显示实际的物理路径
[root@localhost var]# ls adm crash empty gopher lib lock mail opt run tmp cache db games kerberos local log nis preserve spool yp [root@localhost var]# cd run [root@localhost run]# pwd /var/run [root@localhost run]# pwd -P /run [root@localhost run]#
run目录是链接目录