$ type --help
~
-t output a single word which is one of `alias', `keyword',
`function', `builtin', `file' or `', if NAME is an alias,
shell reserved word, shell function, shell builtin, disk file,
or not found, respectively
~
$ type -t cp dir bg dmesg
file
file
builtin
file