1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ar/common/cat.md
2025-01-08 22:33:38 +05:30

652 B

cat

طباعة وسلسلة الملفات. لمزيد من التفاصيل: https://manned.org/cat.1posix.

  • طباعة محتوي ملف إلى stdout:

cat {{path/to/file}}

  • دمج عدة ملفات في ملف إخراج:

cat {{path/to/file1 path/to/file2 ...}} > {{path/to/output_file}}

  • إلحاق عدة ملفات بملف إخراج:

cat {{path/to/file1 path/to/file2 ...}} >> {{path/to/output_file}}

  • نسخ محتويات ملف إلى ملف إخراج دون استخدام الذاكرة المؤقتة:

cat -u {{/dev/tty12}} > {{/dev/tty13}}

  • كتابة stdin إلى ملف:

cat - > {{path/to/file}}