pwd print working directory 打印出当前工作路径的绝对路径。
语法:
pwd [ 选项 ]
-P:显示实际的绝对路径,一般用于通过符号链接进入的路径。
--help
--version
示例:
/test-->/home/ypf/work/test
cd /test
pwd
显示 /test
pwd -P
显示 /home/ypf/work/test
pwd print working directory 打印出当前工作路径的绝对路径。
语法:
pwd [ 选项 ]
-P:显示实际的绝对路径,一般用于通过符号链接进入的路径。
--help
--version
示例:
/test-->/home/ypf/work/test
cd /test
pwd
显示 /test
pwd -P
显示 /home/ypf/work/test