Le shell et l'invite de commande
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
;.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
La consigne attend une commande. Tapez pwd (print working directory) pour voir dans quel dossier vous vous trouvez, puis cliquez sur Run.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
echo affiche en retour tout ce que vous lui donnez. Utilisez-le pour imprimer le mot hello.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
Le shell découpe une ligne non entre guillemets en mots, donc echo reçoit my et gap et les joint avec un seul espace. Mettez le texte entre guillemets doubles pour le conserver comme un seul mot : affichez my gap avec les trois espaces, en utilisant echo "my gap".