|
15.
|
|
|
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>.
|
|
|
|
A orde <command>cd</command> cambia de directorio. Cando abra un terminal estará no seu directorio persoal ("home"). Para moverse polo sistema de ficheiros utilizará <command>cd</command>.
|
|
Translated and reviewed by
Miguel Anxo Bouzada
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:95(para)
|
|
16.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
Para chegar ao directorio raiz, escriba: <screen>cd /</screen>
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:104(para)
|
|
17.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
Para chegar ao seu directorio persoal, escriba: <screen>cd</screen> ou <screen>cd ~</screen>
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:110(para)
|
|
18.
|
|
|
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 directorio persoal ("home") do usuario actual. Como se viu antes, <command>cd ~</command> equivale a <command>cd /home/nomedousuario/</command>. No entanto, ao executar un comando como root (mediante <command>sudo</command>, por exemplo), <command>~</command> apunta cara a <filename class="directory">/root</filename>. Ao executar unha orde con <command>sudo</command> hai que indicar o camiño completo ao seu directorio persoal.
|
|
Translated and reviewed by
Antón Méixome
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:116(para)
|
|
19.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Para subir un nivel de directorio, escriba: <screen>cd ..</screen>
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:127(para)
|
|
20.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Para voltar ao directorio anterior, escriba: <screen>cd -</screen>
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:133(para)
|
|
21.
|
|
|
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 a través múltiples niveis de directorios dunha vez, especifique o camiño completo ao directorio ao que quere ir. Por exemplo, escriba <screen>cd /var/www</screen> para ir directamente ao subdirectorio <filename class="directory">/www</filename> de <filename class="directory">/var/</filename>. Como outro exemplo máis, escriba <screen>cd ~/Desktop</screen> para moverse ao subdirectorio <filename class="directory">Escritorio</filename> do seu directorio persoal.
|
|
Translated and reviewed by
Antón Méixome
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:140(para)
|
|
22.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
Xosé
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:157(title)
|
|
23.
|
|
|
<application>Xfce4 Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
<application>Xfce4 Terminal</application> tamén mostra esta información na barra de título desta xanela.
|
|
Translated and reviewed by
Antón Méixome
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|
|
24.
|
|
|
The <command>pwd</command> command outputs which directory you are currently located in (<acronym>pwd</acronym> stands for <quote>print working directory</quote>). For example, typing <screen>pwd</screen> in the <filename class="directory">Desktop</filename> directory, will show <computeroutput>/home/username/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
A orde <command>pwd</command> mostra o directorio no que se atopa situado actualmente (<acronym>pwd</acronym> significa <quote>print working directory</quote>, "imprime o directorio de traballo"). Por exemplo, ao escribir <screen>pwd</screen> no directorio <filename class="directory">Escritorio</filename> mostrarase <computeroutput>/home/nomedeusuario/Desktop</computeroutput>. <placeholder-1/>
|
|
Translated and reviewed by
Antón Méixome
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:158(para)
|