|
26.
|
|
|
The <command>cd</command> command changes directories. When you open a terminal you will be in your home directory. To move around the file system you will use <command>cd</command>.
|
|
|
|
Perintah <command>cd</command> adalah perintah untuk berpindah direktori. Ketika Anda membuka terminal anda akan berada di direktori home. Untuk berpindah seputar berkas sistem anda kan menggunakan perintah <command>cd</command>.
|
|
Translated and reviewed by
Cecep Mahbub
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:79(para)
|
|
27.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
Untuk pindah ke direktori root, ketik: <screen>cd /</screen>
|
|
Translated and reviewed by
padmawan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:88(para)
|
|
28.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
Untuk pindah ke direktori home, ketik: <screen>cd</screen> atau <screen>cd ~</screen>
|
|
Translated and reviewed by
padmawan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:94(para)
|
|
29.
|
|
|
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.
|
|
|
|
Karakter <command>~</command> merepresentasikan direktori home user sekarang. Seperti terlihat di atas, <command>cd ~</command> setaraa dengan <command>cd /home/username/</command>. Meskipun demikian, ketika menjalankan perintah sebagai root (menggunakan <command>sudo</command>, misalnya), <command>~</command> akan menunjuk ke direktori <filename class="directory">/root</filename>. Ketika menjalankannya dengan perintah <command>sudo</command>, lokasi lengkap ke direktori home harus diberikan.
|
|
Translated and reviewed by
Cecep Mahbub
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
30.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Untuk naik satu tingkat, ketik: <screen>cd ..</screen>
|
|
Translated and reviewed by
padmawan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
31.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Untuk pindah ke direktori sebelumnya (atau kembali), ketik: <screen>cd -</screen>
|
|
Translated and reviewed by
padmawan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
32.
|
|
|
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.
|
|
|
|
Untuk berpindah ke beberapa tingkat direktori sekaligus, tentukan lokasi penuh dari direktori yang akan Anda tuju. Misalnya, tulis: <screen>cd /var/www</screen> untuk menuju langsung ke subdirektori <filename class="directory">/www</filename> dari <filename class="directory">/var/</filename>. Contoh lainnya, tulis: <screen>cd ~/Desktop</screen> untuk memindahkan Anda ke subdirektori <filename class="directory">Desktop</filename> di dalam direktori home Anda.
|
|
Translated and reviewed by
Cecep Mahbub
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
33.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
padmawan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|
|
34.
|
|
|
<application>GNOME Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
<application>GNOME Terminal</application> juga menampilkan informasi ini di batang judul di jendelanya.
|
|
Translated and reviewed by
Sihabul Milah
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:151(para)
|
|
35.
|
|
|
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/>
|
|
|
|
Perintah <command>pwd</command> menampilkan lokasi dimana anda sekarang sedang berada (<acronym>pwd</acronym> singkatan dari <quote>print working directory</quote>). MIsalnya, menulis <screen>pwd</screen> di direktori<filename class="directory">Desktop</filename>, akan menampilkan <computeroutput>/home/username/Desktop</computeroutput>. <placeholder-1/>
|
|
Translated and reviewed by
Cecep Mahbub
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:142(para)
|