1:查看当前工作目录的完整路径命令:pwd

2:目录连接链接时,pwd -P  显示出实际路径,而非使用连接(link)路径;pwd显示的是连接路径:

[root@host-172-168-80-55 test4]# cd /etc/init.d/

[root@host-172-168-80-55 init.d]# pwd

/etc/init.d

[root@host-172-168-80-55 init.d]# pwd -P

/etc/rc.d/init.d

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2021-06-13
  • 2022-01-28
  • 2022-12-23
猜你喜欢
  • 2022-03-05
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案