catfist
2/20/2015 - 10:49 AM

check kind of shell command with 'type' command

check kind of shell command with 'type' command

# check kind of shell command with 'type' command
$ type -t for
keyword
$ type -t cd
builtin
$ type -t ls
file
$ type -t somealias
alias
$ type -t somefunc
function