Shell dan prompt
The prompt
- When the terminal is ready, it shows a prompt and waits:
student@linux:~$
- 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.

Where am I?
- The command
pwdprints your current folder — your "you are here" on the map:
pwd
- Press the ▶ on that example to try it. (
~is short for your home folder,/home/student.)
Make the computer talk
echosimply prints back what you type. It is the classic first command:
echo Hello from the shell
- Run it, then try the two tasks below.
Common mistakes
- Commands are case-sensitive:
LSis notls. - Press Enter to submit a command; you can also put multiple commands on one line, separated by
;.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Prompt sedang menunggu perintah. Ketik pwd (print working directory) untuk melihat folder mana yang sedang Anda buka, lalu klik Run.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
echo mencetak kembali apa pun yang Anda berikan padanya. Gunakan untuk mencetak kata hello.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Shell memecah baris tanpa tanda kutip menjadi kata-kata, sehingga echo menerima my dan gap dan menggabungkannya dengan satu spasi. Letakkan teks dalam tanda kutip ganda untuk menjaganya sebagai satu kata: print my gap dengan tiga spasi, menggunakan echo "my gap".