Skip to content · ⁨Passer au contenu⁩

Saving output to files · ⁨Enregistrer la sortie vers des fichiers⁩

English

Catching the output

  • Normally a command's output appears on screen. The > symbol redirects it into a file instead:
  • Nothing prints — the text went into greeting.txt. Read it back with cat greeting.txt.

Français

Capturer la sortie

  • Normalement, la sortie d'une commande s'affiche à l'écran. Le symbole > redirige cette sortie vers un fichier :
echo hello > greeting.txt
  • Rien ne s'affiche — le texte est allé dans greeting.txt. Relisez-le avec cat greeting.txt.

Le symbole > envoie la sortie d'une commande vers un fichier au lieu de l'écran

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP