draft: type

This commit is contained in:
Cédrix
2026-05-16 19:09:12 +02:00
parent 3cd6354a71
commit 9a19f9d0a9
2 changed files with 2 additions and 3 deletions
@@ -1,4 +1,5 @@
{
"title": "La commande `type` sous Linux",
"_updated_at": "2026-05-16 17:09:09"
"_updated_at": "2026-05-16 17:09:11",
"slug": "type"
}
@@ -1,7 +1,5 @@
# La commande `type` sous Linux
![Déterminer comment une commande est interprétée](1200px-gnulinux.jpg)
La commande `type` permet de savoir comment le shell interprète un nom de commande : alias, fonction, primitive (builtin), mot-clé du shell ou exécutable sur le disque. C'est un outil précieux pour comprendre pourquoi une commande se comporte d'une certaine manière et pour déboguer son environnement shell.
`type` est une primitive intégrée à Bash (et conforme à POSIX), il n'y a donc rien à installer.