【Linux命令】每天一个Linux命令(3):pwd命令

admin 2023年6月2日08:40:43评论33 views字数 663阅读2分12秒阅读模式

每天一个Linux命令(3):pwd命令

命令:
pwd
描述:pwd(print working directory)用于打印出当前工作目录的路径。它显示用户当前所在的目录的完整路径。
语法:
pwd
示例:

打印当前工作目录的路径:

pwd

这将输出当前所在的工作目录的完整路径,例如 /home/username/Documents。

【Linux命令】每天一个Linux命令(3):pwd命令

说明: 

pwd 命令是一个简单实用的命令,用于查看当前所在的工作目录的路径。它通常在需要确认当前位置时使用。在命令行界面中,当前工作目录的路径经常用作其他命令的参数或操作的参考点。使用 pwd 命令时,将显示当前工作目录的绝对路径,以便您可以了解当前所在的位置。

[root@iZb5dlyg1ebe6oZ ~]# pwd --helppwd: 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命令

原文始发于微信公众号(利刃信安攻防实验室):【Linux命令】每天一个Linux命令(3):pwd命令

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年6月2日08:40:43
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【Linux命令】每天一个Linux命令(3):pwd命令https://cn-sec.com/archives/1781128.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息