|
18.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Para ir a un nivel de directorio más arriba, teclee: <screen>cd ..</screen>
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:127(para)
|
|
19.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Para ir al directorio anterior (o volver atrás), teclee: <screen>cd -</screen>
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:133(para)
|
|
20.
|
|
|
To navigate through multiple levels of directory 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 de varios niveles de directorios de una sola vez, especifique la ruta completa del directorio a la que quiere ir. Por ejemplo, teclee <screen>cd /var/www/</screen> para ir directamente al subdirectorio <filename class="directory">/www</filename> de <filename class="directory">/var</filename>. Como otro ejemplo, teclee <screen>cd ~/Escritorio</screen> para dirigirse al subdirectorio <filename class="directory">Escritorio</filename> situado dentro de su directorio personal.
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:136(para)
|
|
21.
|
|
|
pwd
|
|
|
|
contraseña
|
|
Translated and reviewed by
Paco Molinero
|
Shared: |
|
pwd
|
|
|
Suggested by
Roberto Alejandro Dicmonas
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:157(title)
|
|
23.
|
|
|
The <acronym>pwd</acronym> command will allow you to know in which directory you're located (<acronym>pwd</acronym> stands for "print working directory"). For example, typing <screen>pwd</screen> in the <filename class="directory">Desktop</filename> directory, will show <computeroutput>~/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
La orden <acronym>pwd</acronym> le permitirá saber en qué directorio se encuentra actualmente (<acronym>pwd</acronym> es un acrónimo de "print working directory" (mostrar directorio de trabajo)). Por ejemplo, escribiendo <screen>pwd</screen> en la carpeta <filename class="directory">Desktop</filename> , mostrará <computeroutput>~/Desktop</computeroutput>. <placeholder-1/>
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:154(para)
|
|
25.
|
|
|
The <command>ls</command> command will allow you to see the files in the directory you are in (<acronym>ls</acronym> stands simply for "list"). Used with certain options, you can see sizes of files, when files where made, and permissions of files. For example, typing <screen>ls ~</screen> will show you the files that are in your home directory. Examples:
|
|
|
|
La orden <command>ls</command> le permitirá ver los archivos contenidos en el directorio actual (<acronym>ls</acronym> es un acrónimo de "list" (listar)). Usado con ciertas opciones, puede ver el tamaño de los archivos, cuándo fueron creados, y los permisos de cada archivo. Por ejemplo escribiendo <screen>ls ~</screen> mostrará los archivos contenidos en su directorio principal (home). Ejemplos:
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:174(para)
|
|
31.
|
|
|
The <command>cp</command> command will make a copy of a file for you (<acronym>cp</acronym> stands simply for "copy"). For example, type: <screen>cp file foo</screen> to make a exact copy of <filename>file</filename> and name it <filename>foo</filename>, but the file <filename>file</filename> will still be there.
|
|
|
|
La orden <command>cp</command> creará una copia de un archivo (<acronym>cp</acronym> es un acrónimo de "copy" (copiar)). Por ejemplo, escriba: <screen>cp archivo foo</screen> para hacer una copia exacta de <filename>archivo</filename> y nombrarla <filename>foo</filename>, pero el archivo <filename>archivo</filename> seguirá estando ahí.
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:214(para)
|
|
33.
|
|
|
<command>mv</command>: The <command>mv</command> command will move a file to a different location or will rename a file (<acronym>mv</acronym> stands simply for "move"). Examples:
|
|
|
|
<command>mv</command>: La orden <command>mv</command> moverá un archivo a una ubicación diferente o cambiará el nombre a un archivo (<acronym>mv</acronym> es un adrónimo de "move" (mover)). Ejemplos:
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:227(para)
|
|
36.
|
|
|
If you are using <command>mv</command> with <command>sudo</command> you will not be able to use the <emphasis role="strong">~</emphasis> shortcut, but will have to use the full pathnames to your files. This is because when you are working as root, <emphasis role="strong">~</emphasis> will refer to the root account's home directory, not your own.
|
|
|
|
Si está usando la orden <command>mv</command> con <command>sudo</command> no podrá usar el acceso directo <emphasis role="strong">~</emphasis>, sino que tendrá que usar la ruta completa de sus archivos. Esto es porque cuando trabaja como administrador, <emphasis role="strong">~</emphasis> se refiere a la carpeta personal de la cuenta del administrador, no a la suya.
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:250(para)
|
|
38.
|
|
|
The <command>rm</command> will remove or delete a file in your directory (<acronym>rm</acronym> stands simply for "remove"). It will not work on directories which have files in them. To remove directories, you can use <command>rm -r</command>. The <emphasis>r</emphasis> stands for <emphasis>recursive</emphasis>. For example: <screen>rm -r foo</screen> will remove the directory named foo and all of its contents.
|
|
|
|
La orden <command>rm</command> removerá o eliminará un archivo en su directorio (<acronym>rm</acronym> es un acrónimo de "remove" (remover)). La orden no funciona para directorios que contengan archivos dentro. Para remover o eliminar directorios, puede utilizar el comando <command>rm -r</command>. La <emphasis>r</emphasis> es un acrónimo de <emphasis>recursive</emphasis>(recursivo). Por ejemplo: <screen>rm -r foo</screen> Removerá (o eliminará) el directorio foo y todo su contenido.
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:263(para)
|