您的位置:首页 > 运维架构 > Linux

Linux常用命令汇总--pwd

2016-05-10 22:01 218 查看
名称:pwd

用途:打印用户当前/工作目录
用法:pwd [option]
参数:
-L,--logical 目录连接链接时,输出连接路径
-P,--physical 输出物理路径

测试1:
[root@mycentos home]# pwd
/home

测试2:
创建目录的软连接
[root@mycentos home]# ln -s test ln_test
[root@mycentos home]# cd ln_test/
[root@mycentos ln_test]# pwd
/home/ln_test
[root@mycentos ln_test]# pwd -L #显示当前的路径
/home/ln_test
[root@mycentos ln_test]# pwd -P #显示物理路径
/home/test
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: