每天一个Linux命令(3):pwd命令
pwdpwd打印当前工作目录的路径:
pwd这将输出当前所在的工作目录的完整路径,例如 /home/username/Documents。
说明:
pwd 命令是一个简单实用的命令,用于查看当前所在的工作目录的路径。它通常在需要确认当前位置时使用。在命令行界面中,当前工作目录的路径经常用作其他命令的参数或操作的参考点。使用 pwd 命令时,将显示当前工作目录的绝对路径,以便您可以了解当前所在的位置。
[[email protected] ~]# pwd --helppwd: pwd [-LP]Print the name of the current working directory.Options:-L print the value of $PWD if it names the current workingdirectory-P print the physical directory, without any symbolic linksBy default, `pwd' behaves as if `-L' were specified.Exit Status:Returns 0 unless an invalid option is given or the current directorycannot be read.