Type (Unix)

Type
Description de l'image Type command example.png.
Informations
Créateur American Telephone & Telegraph
Système d'exploitation Unix et type Unix
Environnement Multiplateforme (en)
Type Utilitaire UNIX (d)

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


  • icône décorative Portail de l’informatique