复制代码代码如下: type: usage: type [-afptP] name [name ...]
复制代码代码如下: [root@linuxeye ~]# type type type is a shell builtin [root@linuxeye ~]# type -p type [root@linuxeye ~]# type -t type builtin [root@linuxeye ~]# type type type is a shell builtin [root@linuxeye ~]# type -t type builtin [root@linuxeye ~]# type pwd pwd is a shell builtin [root@linuxeye ~]# type whiptail whiptail is /usr/bin/whiptail [root@linuxeye ~]# type -t whiptail file
enable既可以查看内部命令,同时也可以判断是否为内部命令
复制代码代码如下: [root@linuxeye ~]# enable -a #查看内部命令 [root@linuxeye ~]# enable whiptail #非内部命令 -bash: enable: whiptail: not a shell builtin [root@linuxeye ~]# enable pwd #是内部命令