The shell and the prompt · Shell dan prompt
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Halaman ini memerlukan browser terbaru (dengan dukungan SharedArrayBuffer). Silakan perbarui Chrome, Edge, Firefox, atau Safari ke versi terbaru.
English
The prompt
- When the terminal is ready, it shows a prompt and waits:
- That tells you who you are (
student), the computer (linux), and the folder you are in (~, your home). - You type a command after the
$, press Enter, and the computer runs it.
Bahasa Indonesia
Prompt
- Ketika terminal siap, ia menampilkan prompt dan menunggu:
student@linux:~$
- Itu memberi tahu Anda siapa Anda (
student), komputer (linux), dan folder tempat Anda berada saat ini (~, rumah Anda). - Ketik perintah setelah
$, tekan Enter, dan komputer akan menjalankannya.
English
Where am I?
- The command
pwdprints your current folder — your "you are here" on the map:
- Press the ▶ on that example to try it. (
~is short for your home folder,/home/student.)
Bahasa Indonesia
Di mana saya?
- Perintah
pwdmencetak folder saat ini Anda — "Anda di sini" pada peta:
pwd
- Klik ▶ pada contoh tersebut untuk mencobanya. (
~adalah singkatan dari folder rumah Anda,/home/student.)
English
Make the computer talk
echosimply prints back what you type. It is the classic first command:
- Run it, then try the two tasks below.
Bahasa Indonesia
Meminta komputer berbicara
echosekadar mencetak kembali apa yang Anda ketik. Ini adalah perintah pertama klasik:
echo Hello from the shell
- Jalankan, lalu coba dua tugas di bawah ini.
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
Bahasa Indonesia
Kesalahan umum
- Perintah peka huruf besar/kecil:
LSbukanls. - Shell menjalankan satu perintah per baris ketika Anda menekan Enter.
The prompt is waiting for a command. Type pwd (print working directory) to see which folder you are in, then click Run. · Prompt sedang menunggu perintah. Ketik pwd (print working directory) untuk melihat folder mana yang sedang Anda buka, lalu klik Run.
echo prints back whatever you give it. Use it to print the word hello. · echo mencetak kembali apa pun yang Anda berikan padanya. Gunakan untuk mencetak kata hello.