“pwd”(print working directory),在终端中显示当前工作目录的全路径。
?
root@tecmint:~
# pwd
/home/user/Desktop
注意: 这个命令并不会在脚本中经常使用,但是对于新手,当从连接到nux很久后在终端中迷失了路径,这绝对是救命稻草。