# 内置命令、别名、函数、外部命令 $ alias kill="echo haha" $ function kill()(echo hehe)
$ type -a kill kill is aliased to `echo haha' # 1.别名kill kill is a function # 2.函数kill kill () { ( echo hehe ) } kill is a shell builtin # 3.内置kill kill is /usr/bin/kill # 4.外部kill
# 别名、函数、保留关键字、外部命令 $ alias time="echo haha" $ function time()(echo hehe)
$ type -a time time is aliased to `echo haha' # 1.别名 time is a shell keyword # 2.保留关键字 time is a function # 3.函数 time () { ( echo hehe ) } time is /usr/bin/time # 4.外部命令