|
29.
|
|
|
The <command>cd</command> command changes directories (<acronym>cd</acronym> stands for <quote>change directory</quote>). When a terminal window is opened, it will be located in the user's home directory. Moving around the file system requires the use of <command>cd</command>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cli/C/cli.xml:106(para)
|
|
30.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
Per spostarsi nella directory di root (radice), digitare: <screen>cd /</screen>
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:116(para)
|
|
31.
|
|
|
To navigate to the current user's home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
Per andare alla directory principale (home) dell'utente corrente, digitate: <screen>cd</screen> o <screen>cd ~</screen>
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:122(para)
|
|
32.
|
|
|
The <command>~</command> character represents the current user's home directory. As shown 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 to <filename class="directory">/root</filename>. When running a <command>cd</command> command with <command>sudo</command>, the full path to the home directory must be given.
|
|
|
|
Il carattere <command>~</command> rappresenta la directory principale (home) dell'utente corrente. Come mostrato sopra, <command>cd ~</command> equivale a <command>cd /home/nome_utente/</command>. Tuttavia, quando si esegue un comando come root (utilitzzando <command>sudo</command>, per esempio), <command>~</command> punta a <filename class="directory">/root</filename> (radice). Quando si esegue un comando <command>cd</command> con <command>sudo</command>, deve essere fornito il percorso completo alla directory principale (home).
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:129(para)
|
|
33.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Per spostarsi indietro di una directory, digitate: <screen>cd ..</screen>
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:140(para)
|
|
34.
|
|
|
To navigate up two directory levels, type: <screen>cd ../../</screen>
|
|
|
|
Per spostarsi indietro di due directory, digitate: <screen>cd ../../</screen>
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:146(para)
|
|
35.
|
|
|
To navigate to the previous directory (go back), type: <screen>cd -</screen>
|
|
|
|
Per spostarsi alla directory precedente (indietro), digitate: <screen>cd -</screen>
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:152(para)
|
|
36.
|
|
|
To navigate through multiple levels of directories at once, specify the full directory path. For example, type: <screen>cd /var/log</screen> to go directly to the <filename class="directory">/log</filename> subdirectory of <filename class="directory">/var/</filename>. For another example, typing: <screen>cd ~/Desktop</screen> moves to the <filename class="directory">Desktop</filename> subdirectory inside the current user's home directory.
|
|
|
|
Per spostarsi tra più livelli di directory con un unico comando, specificate il percorso completo della directory. Per esempio, digitate: <screen>cd /var/log</screen> per andare direttamente alla directory secondaria <filename class="directory">/log</filename> di <filename class="directory">/var/</filename>. Come altro esempio, se si digita: <screen>cd ~/Desktop</screen> ci si sposta alla directory secondaria <filename class="directory">Desktop</filename> all'interno della directory principale (home) dell'utente corrente.
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:158(para)
|
|
37.
|
|
|
ls - list files
|
|
|
|
ls - elenca file
|
|
Translated and reviewed by
Valter Mura
|
|
|
|
Located in
docs/cli/C/cli.xml:173(title)
|
|
38.
|
|
|
The <command>ls</command> command outputs a list of the files in the current directory (<acronym>ls</acronym> is short for <quote>list</quote>). For example, typing <screen>ls ~</screen> will display the files that are in the current user's home directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cli/C/cli.xml:173(para)
|