|
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.
|
|
|
|
Tento <command>~</command> znak představuje domovský adresář aktuálního uživatele. Jak vidíte, <command>cd ~</command> je ekvivalentem k <command>cd /home/uživatel/</command>. Toto pravidlo však neplatí, pokud příkaz spouštíte pod uživatelem root (např. pomocí <command>sudo</command>). V tomto případě <command>~</command> zobrazí obsah adresáře <filename class="directory">/root</filename>. Když spouštíte příkaz se <command>sudo</command>, musíte pro přístup ke svému domovskému adresáři použít celou cestu.
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
32.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Pro přesun o jednu adresář výše napište: <screen>cd ..</screen>
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
33.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Pro přesun do předchozího adresáře (nebo zpět) napište: <screen>cd -</screen>
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
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.
|
|
|
|
Pro navigaci přes mnohonásobné úrovně adresářů najednou napište celou cestu adresáře, kam chcete jít. Například: <screen>cd /var/www</screen> pro okamžitý přístup k adresáři <filename class="directory">/www</filename> v adresáři <filename class="directory">/var/</filename>. Další příklad: Napište <screen>cd ~/Plocha</screen> pro přesunutí do adresáře <filename class="directory">Plocha</filename> uvnitř svého domovského adresáře.
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
35.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
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.
|
|
|
|
<application>GNOME Terminál</application> tuto informaci také zobrazí v názvu svého okna.
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
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/>
|
|
|
|
Příkaz <command>pwd</command> zobrazí, ve kterém adresáři se právě nacházíte (<acronym>pwd</acronym> znamená <quote>print working directory (vypiš pracovní adresář)</quote>). Například po napsání <screen>pwd</screen> v adresáři <filename class="directory">Plocha</filename> se zobrazí <computeroutput>/home/uživatel/Plocha</computeroutput>. <placeholder-1/>
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:142(para)
|
|
38.
|
|
|
ls
|
|
|
|
ls
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
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.
|
|
|
|
Příkaz <command>ls</command> vypíše seznam souborů v aktuálním adresáři. Například napsáním <screen>ls ~</screen> se vypíše seznam souborů, které jsou ve vašem domovském adresáři.
|
|
Translated by
Jan Hrdina
|
|
Reviewed by
Kamil Páral
|
|
|
|
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.
|
|
|
|
Při použití volby <command>-l</command> (<command>ls -l</command>) budou kromě názvů souborů vypsány i jiné informace, jako například aktuální přístupová práva nebo vlastník souboru.
|
|
Translated and reviewed by
Kamil Páral
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|