使用type命令可以查看终端中可执行命令的命令类型:是内置命令还是别名还是其他什么。
niu@niu:~$ type if
if is a shell keyword
niu@niu:~$ type ls
ls is aliased to `ls --color=auto'
niu@niu:~$ type bash
bash is /bin/bash
niu@niu:~$
使用type命令可以查看终端中可执行命令的命令类型:是内置命令还是别名还是其他什么。
niu@niu:~$ type if
if is a shell keyword
niu@niu:~$ type ls
ls is aliased to `ls --color=auto'
niu@niu:~$ type bash
bash is /bin/bash
niu@niu:~$