|
74.
|
|
|
The default behavior for a command may usually be modified by adding <command>--option</command> to the command. For example, the <link linkend="ls"><command>ls</command></link> command has an <command>-s</command> option. The <command>ls -s</command> will include file sizes in the listing. There is also a <command>-h</command> option to display file sizes in a <quote>human readable</quote> format.
|
|
|
|
O comportamento padrão para um comando pode normalmente ser modificado colocando-se <command>--option</command> depois dele. Por exemplo, o comando <link linkend="ls"><command>ls</command></link> tem uma opção <command>-s</command>. O comando <command>ls -s</command> irá incluir tamanhos dos arquivos à listagem. Há também uma opção <command>-h</command> para exibir tamanhos dos arquivos em um formato <quote>legível por humanos</quote>.
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
docs/cli/C/cli.xml:363(para)
|
|
75.
|
|
|
Options can be grouped in clusters, so <screen>ls -sh</screen> is the same command as <screen> ls -s -h</screen> Most options have a long version, prefixed with two dashes instead of one, so <screen>ls --size --human-readable</screen> is also the same command as <screen>ls -sh</screen>
|
|
|
|
Opções podem ser agrupadas, assim, <screen>ls -sh</screen> é o mesmo que usar o comando <screen> ls -s -h</screen> A maioria das opções tem uma versão longa, prefixada com dois traços em vez de um, assim <screen>ls --size --human-readable</screen> faz o mesmo que o comando <screen>ls -sh</screen>
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
../docs/cli/C/cli.xml:383(para)
|
|
76.
|
|
|
<quote>Man</quote> and Getting Help
|
|
|
|
<quote>Man</quote> e obtendo ajuda
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
docs/cli/C/cli.xml:382(title)
|
|
77.
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> and <command>man</command><emphasis role="strong"><emphasis>command</emphasis></emphasis> are the two most important tools at the command line.
|
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> e <command>man</command><emphasis role="strong"><emphasis>command</emphasis></emphasis> são as duas mais importantes ferramentas na linha de comando.
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
../docs/cli/C/cli.xml:398(para)
|
|
78.
|
|
|
Virtually all commands understand the <command>-h</command> (or <command>--help</command>) option which will produce a short usage description of the command and its options, then exit back to the command prompt. Type: <screen>man -h</screen> or <screen>man --help</screen> to see this in action.
|
|
|
|
Virtualmente todos os comandos entendem a opção <command>-h</command> (ou <command>--help</command>) que irá produzir uma pequena descrição de ajuda do comando e suas opções, e então sair para o prompt da linha de comando. Digite: <screen>man -h</screen> ou <screen>man --help</screen> para ver isso funcionando.
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
../docs/cli/C/cli.xml:404(para)
|
|
79.
|
|
|
Every command and nearly every application in Linux has a <abbrev>man</abbrev> (manual) file. It 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> brings up the <command>mv</command> manual.
|
|
|
|
Cada comando e quase toda aplicação no Linux tem uma página <abbrev>man</abbrev> (manual). É só digitar <command>man comando</command> para ver uma longa entrada de manual para o comando especificado. Por exemplo: <screen>man mv</screen> traz o manual de <command>mv</command>.
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
../docs/cli/C/cli.xml:413(para)
|
|
80.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
Mova o arquivo de manual para cima e para baixo usando as setas do teclado, e volte para a linha de comando com <keycap>q</keycap>.
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
docs/cli/C/cli.xml:399(para)
|
|
81.
|
|
|
<screen>man man</screen> brings up the manual entry for the <command>man</command> command, which is a good place to start.
|
|
|
|
<screen>man man</screen> traz a entrada de manual do comando <command>man</command>, que é um bom lugar para começar.
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
docs/cli/C/cli.xml:403(para)
|
|
82.
|
|
|
<screen>man intro</screen> is especially useful. It displays the <quote>introduction to user commands</quote> which is a well-written, brief introduction to the Linux command line.
|
|
|
|
<screen>man intro</screen> é especialmente útil. Ele mostra a <quote>introdução aos comandos do usuário</quote> que é uma bem escrita breve introdução à linha de comandos do Linux.
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
../docs/cli/C/cli.xml:430(para)
|
|
83.
|
|
|
There are also <command>info</command> pages, which generally go into more detail than <command>man</command> pages. Try: <screen>info info</screen> for the introduction to info pages.
|
|
|
|
Também há as páginas <command>info</command>, que geralmente contém mais detalhes que as páginas do <command>man</command>. Tente: <screen>info info</screen> para as introdução às páginas de info.
|
|
Translated by
Kenzo Okamura
|
|
Reviewed by
André Gondim
|
|
|
|
Located in
docs/cli/C/cli.xml:412(para)
|