pwd 显示当前路径 主要选项 -L 大写的 L,显示的逻辑路径 /etc/init.d -P 大写的 P,显示的是实际物理路径 /etc/rc.d/init.d 这两个参数了解即可 实例 显示当前路径 [root@localhost init.d]# pwd /etc/init.d