|
70.
|
|
|
Finally, to assign the new user to the new group, type: <screen>adduser newuser newgroup</screen>
|
|
|
|
Finalment, per a assignar un usuari nou al grup nou, introduïu: <screen>adduser usuarinou grupnou</screen>
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:327(para)
|
|
71.
|
|
|
Options
|
|
|
|
Opcions
|
|
Translated and reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:335(title)
|
|
72.
|
|
|
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.
|
|
|
|
Habitualment el comportament predeterminat d'una ordre es pot modificar en afegir una <emphasis role="strong">-- <emphasis>opció</emphasis></emphasis> a l'ordre. Per exemple, l'ordre <link linkend="ls"><command>ls</command></link> té l'opció <emphasis role="strong">-s</emphasis>, de manera que <command>ls -s</command> inclourà les mides dels fitxers en el llistat. També existeix l'opció <emphasis role="strong">-h</emphasis> per a obtenir aquestes mides en format «llegible per a humans».
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:336(para)
|
|
73.
|
|
|
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 opcions es poden agrupar de manera que <screen>ls -sh</screen> és la mateixa ordre que <screen>ls -s -h</screen>. La majoria d'opcions tenen una versió llarga, la qual comença amb dos guions en lloc d'un, de manera que <screen>ls --size --human-readable</screen> és la mateixa ordre.
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|
|
74.
|
|
|
"Man" and getting help
|
|
|
|
«Man» i obtenció d'ajuda
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:358(title)
|
|
75.
|
|
|
<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>ordre</emphasis> --help</emphasis> i <emphasis role="strong">man <emphasis>ordre</emphasis></emphasis> són les dues eines més important de la línia d'ordres.
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:359(para)
|
|
76.
|
|
|
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.
|
|
|
|
Pràcticament totes les ordres funcionen amb l'opció <emphasis role="strong">-h</emphasis> (o <emphasis role="strong">--help</emphasis>), la qual mostra una breu descripció sobre la utilització de l'ordre i les seves opcions, i llavors torna a l'indicador d'ordres. Introduïu <screen>man -h</screen> o <screen>man --help</screen> per a veure-ho en acció.
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:366(para)
|
|
77.
|
|
|
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.
|
|
|
|
Cada ordre i pràcticament cada aplicació en el Linux té un fitxer man (manual), de manera que trobar-lo és tant fàcil com teclejar <command>man ordre</command> per a obtenir una entrada del manual de l'ordre especificada. Per exemple, <screen>man mv</screen> mostrarà el manual de <command>mv</command> (moure).
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:376(para)
|
|
78.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
Us podeu moure amunt i avall del fitxer man amb les fletxes de cursor, i tornar a l'intèrpret d'ordres amb la tecla <keycap>q</keycap>.
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:385(para)
|
|
79.
|
|
|
<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> mostrarà l'entrada del manual per a l'ordre <command>man</command>, per tant és un bon lloc per a començar.
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:390(para)
|