|
38.
|
|
|
To navigate up two directory levels, type: <screen>cd ../../</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:146(para)
|
|
39.
|
|
|
To navigate to the previous directory (go back), type: <screen>cd -</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:152(para)
|
|
40.
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:158(para)
|
|
41.
|
|
|
ls - list files
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:173(title)
|
|
42.
|
|
|
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
docs/cli/C/cli.xml:174(para)
|
|
43.
|
|
|
Used with the <command>-l</command> option, <command>ls</command> outputs other information along with the filename, such as the permissions on the file, the file's owner, and more.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:180(para)
|
|
44.
|
|
|
Used with the <command>-al</command> options, <command>ls</command> outputs the information associated with the <command>-l</command> option in addition to showing hidden files (<command>a</command> option).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:185(para)
|
|
45.
|
|
|
touch - create empty file
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:192(title)
|
|
46.
|
|
|
The <command>touch</command> command is used to change a file's access and modification timestamps or to create a new empty file. For example, <screen>touch foo</screen> will create a new empty file named <filename>foo</filename>. If <filename>foo</filename> is already a file, then using <command>touch</command> will update the timestamps on the file, which show the last time a file was <emphasis>touched</emphasis>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:193(para)
|
|
47.
|
|
|
mkdir - make directory
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:203(title)
|