查看shell 命令 路径

type

[root@web01 ~]# type mount
mount is /bin/mount

which

[root@web01 ~]# type ifconfig
ifconfig is hashed (/sbin/ifconfig)
[root@web01 ~]# which ifconfig
/sbin/ifconfig

猜你喜欢

转载自www.cnblogs.com/imp-W/p/10527097.html