type (Unix)

type est une commande POSIX qui permet de savoir comment le système interprète telle ou telle commande.

Exemples

$ type test
test is a shell builtin
$ type cp
cp is /bin/cp
$ type unknown
-bash: type: unknown: not found
$ type type
type is a shell builtin
$ type -a gzip
gzip is /opt/local/bin/gzip
gzip is /usr/bin/gzip


Uses material from the Wikipedia article type (Unix), released under the CC BY-SA 4.0 license.