每天一个Linux命令(3):pwd命令
pwd
pwd
打印当前工作目录的路径:
pwd
这将输出当前所在的工作目录的完整路径,例如 /home/username/Documents。
说明:
pwd 命令是一个简单实用的命令,用于查看当前所在的工作目录的路径。它通常在需要确认当前位置时使用。在命令行界面中,当前工作目录的路径经常用作其他命令的参数或操作的参考点。使用 pwd 命令时,将显示当前工作目录的绝对路径,以便您可以了解当前所在的位置。
[root@iZb5dlyg1ebe6oZ ~]# pwd --help
pwd: pwd [-LP]
Print the name of the current working directory.
Options:
-L print the value of $PWD if it names the current working
directory
-P print the physical directory, without any symbolic links
By default, `pwd' behaves as if `-L' were specified.
Exit Status:
Returns 0 unless an invalid option is given or the current directory
cannot be read.
原文始发于微信公众号(利刃信安攻防实验室):【Linux命令】每天一个Linux命令(3):pwd命令
特别标注:
本站(CN-SEC.COM)所有文章仅供技术研究,若将其信息做其他用途,由用户承担全部法律及连带责任,本站不承担任何法律及连带责任,请遵守中华人民共和国安全法.
- 我的微信
- 微信扫一扫
-
- 我的微信公众号
- 微信扫一扫
-
评论