Skip to content · ⁨الانتقال إلى المحتوى⁩

Saving output to files · ⁨حفظ المخرجات في ملفات⁩

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