首页 > 系统服务 > 详细

Linux基本命令108将

时间:2018-11-04 10:26:50      阅读:157      评论:0      收藏:0      [点我收藏+]

1.pwd    

    Print the current working directory.  With the -P option, pwd prints

    the physical directory, without any symbolic links; the -L option

    makes pwd follow symbolic links.

    通常进入系统后,往往想知道自己当前位置,因此pwd就派上用场了,使用时注意一下-L,-P的区别,-P选项会显示物理路径。

    下面的例子,体会一下,学会了吗?

mengxialeideMBP:~ mengxianglei$ ls -ld /etc
lrwxr-xr-x@ 1 root  wheel  11 12  2  2017 /etc -> private/etc
mengxialeideMBP:~ mengxianglei$ cd /etc
mengxialeideMBP:etc mengxianglei$ pwd
/etc
mengxialeideMBP:etc mengxianglei$ pwd -L
/etc
mengxialeideMBP:etc mengxianglei$ pwd -P
/private/etc

 

 

 

Linux基本命令108将

原文:https://www.cnblogs.com/vmxl/p/9902934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!