区分shell内置命令

来源:互联网 发布:mysql 压缩包 root密码 编辑:程序博客网 时间:2024/05/19 22:07

type  command

type -t command

example)

$ type -t test

  buildin

$ type test

test is a shell builtin


内置命令比外部命令快,因为不需要从硬盘读入命令。

$  type awk
awk is /bin/awk