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
用途:打印用户当前/工作目录
用法: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
相关文章推荐
- Linux 忘记密码
- CentOS6.5下telnet服务
- 图解linux下top命令的使用
- linux基本命令(21)——find命令之xargs
- linux基本命令(20)——find命令之exec
- Linux中的线程局部存储(二)
- Linux下实现文档在线浏览
- linux设备模型之内核对象kobject
- Linux中的线程局部存储(一)
- linux基本命令(19)——find命令
- vmware10 虚拟机克隆 centos7 完整步骤
- 如何通过putty向服务器传输文件
- ArchLinux笔记
- Linux常用操作
- linux awk命令详解
- 使用fdisk命令对linux硬盘进行操作
- Linux查看磁盘使用率
- 利用SecureCRT上传、下载文件(使用sz与rz命令)
- Linux的inode的理解
- Linux 64位下一键安装scipy等科学计算环境