|
31.
|
|
|
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.
|
|
|
|
El caràcter <command>~</command> representa el directori de l'usuari actual. Com s'ha esmentat anteriorment, l'ordre <command>cd ~</command> equival a <command>cd /home/nomusuari/</command>. Tot i això, quan s'executa una ordre com a usuari primari (per exemple, en utilitzar <command>sudo</command>), <command>~</command> apunta a <filename class="directory">/root</filename>. Quan s'executa una ordre amb la <command>sudo</command>, s'ha de proporcionar el camí complet al directori de l'usuari.
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
32.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Per a navegar un nivell de directori cap amunt, introduïu: <screen>cd ..</screen>
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
33.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Per a navegar al directori anterior (o enrere), introduïu: <screen>cd -</screen>
|
|
Translated and reviewed by
Joan Duran
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
34.
|
|
|
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.
|
|
|
|
Per a navegar de cop a través de múltiples nivells de directoris, especifiqueu el camí complet del directori on vulgueu anar. Per exemple, introduïu: <screen>cd /var/www</screen> per a anar directament al subdirectori <filename class="directory">/www</filename> de <filename class="directory">/var/</filename>. Un altre exemple, introduïu: <screen>cd ~/Escriptori</screen> per a anar al subdirectori <filename class="directory">Escriptori</filename> dins del directori de l'usuari.
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
35.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|
|
36.
|
|
|
<application>GNOME Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
El <application>terminal del GNOME</application> també mostra aquesta informació a la barra del títol de la seva finestra.
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:151(para)
|
|
37.
|
|
|
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/>
|
|
|
|
L'ordre <command>pwd</command> mostra el directori on esteu ubicat actualment. (<acronym>pwd</acronym> significa <quote>mostra el directori de treball</quote>). Per exemple, en introduir <screen>pwd</screen> mentre sigueu al directori <filename class="directory">Escriptori</filename>, es mostrarà <computeroutput>/home/nomusuari/Escriptori</computeroutput>. <placeholder-1/>
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:142(para)
|
|
38.
|
|
|
ls
|
|
|
|
ls
|
|
Translated and reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:160(title)
|
|
39.
|
|
|
The <command>ls</command> command outputs a list of the files in the current directory. For example, typing <screen>ls ~</screen> will show you the files that are in your home directory.
|
|
|
|
L'ordre <command>ls</command> mostra una llista amb els fitxers del directori actual. Per exemple, en introduir <screen>ls ~</screen> es mostraran els fitxers que hi ha al directori de l'usuari.
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:161(para)
|
|
40.
|
|
|
Used with the <command>-l</command> options, <command>ls</command> outputs various other information alongside the filename, such as the current permissions on the file, and the file's owner.
|
|
|
|
Quan s'utilitza amb l'opció <command>-l</command>, <command>ls</command> mostra més informació apart del nom de fitxer, com ara els permisos actuals del fitxer i el propietari del fitxer.
|
|
Translated by
Joan Duran
|
|
Reviewed by
David Planella
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|