Skip to content · ⁨דלג לתוכן⁩
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.

עברית

לוכדים את הפלט

  • בדרך כלל פלט של פקודה מופיע על המסך. הסמל > מכוון אותו לקובץ במקום זאת:
echo hello > greeting.txt
  • לא נדפס דבר — הטקסט הלך לתוך greeting.txt. קרא אותו בחזרה עם cat greeting.txt.

הסמל > שולח פלט של פקודה לקובץ במקום למסך

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP