Name
type
Synopsis
type [options] commands
Description
Report absolute pathname of programs invoked for commands and whether or not they are hashed.
- --
Consider all subsequent strings to be arguments, not options.
- -a, -all
Print all occurrences of command, not just that which would be invoked.
- -p, -path
Print the hashed value of command, which may differ from the first appearance of command in the PATH.
- -t, -type
Determine and state if command is an alias, keyword, function, built-in, or file.
Example
$ type mv read
mv is /bin/mv
read is a shell built-in
Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.