|
25.
|
|
|
pwd - print working directory
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:92(title)
|
|
26.
|
|
|
<application>Konsole</application> also displays this information in both the tab and title bar of its window.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:100(para)
|
|
27.
|
|
|
The <command>pwd</command> command displays the directory where the user is currently located (<acronym>pwd</acronym> stands for <quote>print working directory</quote>). For example, typing <screen>pwd</screen> while in the <filename class="directory">Desktop</filename> will show <computeroutput>/home/[username]/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cli/C/cli.xml:88(para)
|
|
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)
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:128(para)
|
|
35.
|
|
|
To navigate to the previous directory (go back), type: <screen>cd -</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:149(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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:155(para)
|
|
37.
|
|
|
ls - list files
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:168(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)
|
|
39.
|
|
|
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:175(para)
|