type #显示命令的类型
选项:
-a #显示内置命令的绝对路径
-p #只显示命令的绝对路径
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
help命令可以显示系统中所有的内置命令 [root@clf ~]# type ping ping is /usr/bin/ping [root@clf ~]# type cd cd is a shell builtin [root@clf ~]# type -a cd cd is a shell builtin cd is /usr/bin/cd [root@clf ~]# type -p ping /usr/bin/ping [root@clf ~]# type -ap cd /usr/bin/cd |