|
57.
|
|
|
The default behavior for a command may usually be modified by adding a <emphasis role="strong">-- <emphasis>option</emphasis></emphasis> to the command. The <link linkend="ls"><command>ls</command></link> command, for example, has a <emphasis role="strong">-s</emphasis> option so that <command>ls -s</command> will include file sizes in the listing. There is also a <emphasis role="strong">-h</emphasis> option to get those sizes in a "human readable" format.
|
|
|
|
Le comportement par défaut d'une commande pourra habituellement être modifié en ajoutant une <emphasis role="strong">--<emphasis>option</emphasis></emphasis> à cette commande. La commande <link linkend="ls"><command>ls</command></link> par exemple, possède une option <emphasis role="strong">-s</emphasis> qui fera que <command>ls -s</command> ajoutera la taille des fichiers dans la liste, ou encore l'option <emphasis role="strong">-h</emphasis> pour obtenir ces tailles dans dans un format «[nbsp] lisible par des humains[nbsp] ».
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:352(para)
|
|
58.
|
|
|
Options can be grouped in clusters so <screen>ls -sh</screen> is exactly the same command as <screen>ls -s -h</screen> Most options have a long version, prefixed with two dashes instead of one, so even <screen>ls --size --human-readable</screen> is the same command.
|
|
|
|
Les options peuvent être groupées en blocs, ce qui signifie que <screen>ls -sh</screen> est identique à <screen>ls -s -h</screen>. La plupart des options ont une version longue, précédées de deux tirets (--) à la place d'un seul (-) donc <screen>ls --size --human-readable</screen> est la même commande que les deux précédentes.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:363(para)
|
|
59.
|
|
|
"Man" and getting help
|
|
|
|
Obtenir de l'aide et «[nbsp] man[nbsp] »
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:374(title)
|
|
60.
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> and <emphasis role="strong">man <emphasis>command</emphasis></emphasis> are the two most important tools at the command line.
|
|
|
|
<emphasis role="strong"><emphasis>commande</emphasis> --help</emphasis> et <emphasis role="strong">man <emphasis>commande</emphasis></emphasis> sont les deux outils les plus importants dans la ligne de commande.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:375(para)
|
|
61.
|
|
|
Virtually all commands understand the <emphasis role="strong">-h</emphasis> (or <emphasis role="strong">--help</emphasis>) option which will produce a short usage description of the command and it's options, then exit back to the command prompt. Type <screen>man -h</screen> or <screen>man --help</screen> to see this in action.
|
|
|
|
Pratiquement toutes les commandes acceptent l'option <emphasis role="strong">-h</emphasis> (ou <emphasis role="strong">--help</emphasis>) qui produira une courte description de la commande et de ses options, puis quittera pour revenir au terminal. Tapez <screen>man -h</screen> ou <screen>man --help</screen> pour voir ce comportement en action.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:382(para)
|
|
62.
|
|
|
Every command and nearly every application in Linux will have a man (manual) file, so finding them is as simple as typing <command>man command</command> to bring up a longer manual entry for the specified command. For example, <screen>man mv</screen> will bring up the <command>mv</command> (move) manual.
|
|
|
|
Toutes les commandes et presque toutes les applications sous Linux ont un fichier de manuel (man). Pour y avoir accès, il suffit de taper <command>man commande</command> pour une explication complète de la commande spécifiée. Par exemple[nbsp] : <screen>man mv</screen> vous renverra l'aide sur la commande <command>mv</command> (move).
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:392(para)
|
|
63.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
Parcourez le fichier d'aide avec les flèches, et quittez avec la touche <keycap>q</keycap> pour revenir au terminal.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:401(para)
|
|
64.
|
|
|
<screen>man man</screen> will bring up the manual entry for the <command>man</command> command, which is a good place to start.
|
|
|
|
<screen>man man</screen> affiche les entrées de manuel pour la commande <command>man</command>, ce qui est un bon départ.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:406(para)
|
|
65.
|
|
|
<screen>man intro</screen> is especially useful - it displays the "Introduction to user commands" which is a well-written, fairly brief introduction to the Linux command line.
|
|
|
|
<screen>man intro</screen> est particulièrement utile — elle affiche «[nbsp] l'introduction aux commandes utilisateur[nbsp] » qui est une introduction bien écrite et assez brève à la ligne de commande de Linux.
|
|
Translated and reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:412(para)
|
|
66.
|
|
|
There are also <command>info</command> pages, which are generally more in-depth than <command>man</command> pages. Try <screen>info info</screen> for the introduction to info pages.
|
|
|
|
Il existe aussi des pages <command>info</command> qui contiennent généralement plus d'informations que les pages <command>man</command>. Essayez <screen>info info</screen> pour une introduction sur les pages info.
|
|
Translated by
Pierre Buard
|
|
Reviewed by
Bruno
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:417(para)
|