|
24.
|
|
|
File and Directory Commands
|
|
|
|
Comandos de Ficheiros e Directorias
|
|
Translated by
Gifty
|
|
Reviewed by
Mykas0
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:75(title)
|
|
25.
|
|
|
cd
|
|
|
|
cd
|
|
Translated and reviewed by
Mykas0
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:78(title)
|
|
26.
|
|
|
The <command>cd</command> command changes directories. When you open a terminal you will be in your home directory. To move around the file system you will use <command>cd</command>.
|
|
|
|
O comando <command>cd</command> muda de directório.Quando abre uma consola irá estar no seu directório pessoal. Para se movimentar no sistema de ficheiros irá utilizar o comando <command>cd</command>.
|
|
Translated and reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:79(para)
|
|
27.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
Para ir para o directório de raiz digite: <screen>cd /</screen>
|
|
Translated and reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:88(para)
|
|
28.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
Para navegar para o seu directório pessoal, digite: <screen>cd</screen> ou <screen>cd ~</screen>
|
|
Translated by
Rui Peixoto
|
|
Reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:94(para)
|
|
29.
|
|
|
The <command>~</command> character represents the current user's home directory. As seen above, <command>cd ~</command> is equivalent to <command>cd /home/username/</command>. However, when running a command as root (using <command>sudo</command>, for example), <command>~</command> points instead to <filename class="directory">/root</filename>. When running a command with <command>sudo</command>, the full path to your home directory must be given.
|
|
|
|
O carácter <command>~</command> representa o directório pessoal do utilizador . Como se viu acima, o comando <command>cd ~</command> é equivalente a <command>cd /home/username/</command>. No entanto, ao executar um comando como administrador (root) (usando <command>sudo</command>, por exemplo), <command>~</command> desta forma aponta para <filename class="directory">/root</filename>. Ao executar um comando com <command>sudo</command>, o caminho completo do seu directório pessoal deve ser dado.
|
|
Translated and reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
30.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Para navegar para o directório acima, digite: <screen>cd..</screen>
|
|
Translated and reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
31.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Para navegar para o directório anterior, digite: <screen>cd -</screen>
|
|
Translated by
Rui Peixoto
|
|
Reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
32.
|
|
|
To navigate through multiple levels of directories at once, specify the full directory path that you want to go to. For example, type: <screen>cd /var/www</screen> to go directly to the <filename class="directory">/www</filename> subdirectory of <filename class="directory">/var/</filename>. As another example, type: <screen>cd ~/Desktop</screen> to move you to the <filename class="directory">Desktop</filename> subdirectory inside your home directory.
|
|
|
|
Para navegar através de múltiplos directórios de uma só vez, especifique o caminho completo do directório para onde deseja ir. Por exemplo, digite: <screen>cd /var/www</screen> para ir para o sub-directório <filename class="directory">/www</filename> do directório <filename class="directory">/var/</filename>. Pode também digitar: <screen>cd ~/Desktop</screen> para ir para o sub-directório <filename class="directory">Desktop</filename> dentro do seu directório pessoal.
|
|
Translated and reviewed by
João Santos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
33.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated by
cetautomatix
|
|
Reviewed by
António Lima
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|