The shell and the prompt · Le shell et l'invite de commande
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Cette page nécessite un navigateur récent (avec support SharedArrayBuffer). Veuillez mettre à jour Chrome, Edge, Firefox ou Safari vers la dernière version.
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.
Français
Le prompt
- Quand le terminal est prêt, il affiche un prompt et attend :
student@linux:~$
- Cela te dit qui tu es (
student), l'ordinateur (linux) et le dossier courant (~, ton dossier personnel). - Tu tapes une commande après le
$, appuies sur Entrée, et l'ordinateur l'exécute.
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.)
Français
Où suis-je ?
- La commande
pwdimprime ton dossier courant — ton "ici" sur la carte :
pwd
- Clique sur ▶ sur cet exemple pour essayer. (
~est court pour ton dossier personnel,/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.
Français
Faire parler l'ordinateur
echorenvoie simplement ce que tu tapes. C'est la fameuse première commande :
echo Hello from the shell
- Exécute-la, puis essaie les deux tâches ci-dessous.
English
Common mistakes
- Commands are case-sensitive:
LSis notls. - The shell runs one command per line when you press Enter.
Français
Erreurs courantes
- Les commandes distinguent la casse :
LSn'est pasls. - Le shell exécute une commande par ligne lorsque vous appuyez sur Entrée.
The prompt is waiting for a command. Type pwd (print working directory) to see which folder you are in, then click Run. · La consigne attend une commande. Tapez pwd (print working directory) pour voir dans quel dossier vous vous trouvez, puis cliquez sur Run.
echo prints back whatever you give it. Use it to print the word hello. · echo affiche en retour tout ce que vous lui donnez. Utilisez-le pour imprimer le mot hello.