« Apropos » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 4 : | Ligne 4 : | ||
---- | ---- | ||
<pre> | |||
$ man list | |||
no manual entry for list | no manual entry for list | ||
$ man -k list | |||
last (1) - show listing of last logged in users | last (1) - show listing of last logged in users | ||
ls (1) - list directory | ls (1) - list directory | ||
</pre> | |||
---- | ---- | ||
Ligne 18 : | Ligne 20 : | ||
---- | ---- | ||
<pre> | |||
$ apropos list | |||
last (1) - show listing of last logged in users | last (1) - show listing of last logged in users | ||
ls (1) - list directory | ls (1) - list directory | ||
</pre> | |||
---- | ---- | ||
Ligne 30 : | Ligne 34 : | ||
---- | ---- | ||
<pre> | |||
$ apropos -e list | |||
ls (1) - list directory contents | ls (1) - list directory contents | ||
Ligne 37 : | Ligne 42 : | ||
lsof (8) - list open files | lsof (8) - list open files | ||
</pre> | |||
---- | ---- | ||
le mot "last" n'apparaît pas car nous recherchont tout ce qu'il y a avec le mot "list" | le mot "last" n'apparaît pas car nous recherchont tout ce qu'il y a avec le mot "list" |
Version du 1 mars 2012 à 12:52
La commande "apropos" équivaut a man -k
l'utilisation de "apropos" est simple, on fait suivre le nom de la commande du mot ou de la phrase qui décrit la commande rechercher :
$ man list no manual entry for list $ man -k list last (1) - show listing of last logged in users ls (1) - list directory
maintenant avec la commande "apropos"
$ apropos list last (1) - show listing of last logged in users ls (1) - list directory
nous voyons que le résultat est le même !
mais avec l'option -e "apropos" va rechercher le mot exact :
$ apropos -e list ls (1) - list directory contents lshw (1) - list hardware lsof (8) - list open files
le mot "last" n'apparaît pas car nous recherchont tout ce qu'il y a avec le mot "list"