1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 17:15:23 +02:00
tldr/pages.fa/common/cmp.md
Managor a70b923d8f
*: add option placeholders to translations (#15933)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-19 00:36:34 +02:00

871 B

cmp

مقایسه بایت به بایت دو فایل. اطلاعات بیشتر: https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html.

  • نمایش کارکتر و خطی که اولین تفاوت دو فایل در آن یافت شد:

cmp {{path/to/file1}} {{path/to/file2}}

  • نمایش اطلاعات اولین تفاوت پیدا شده: کاراکتر، شماره خط، بایت ها، و مقادیر آنها:

cmp {{[-b|--print-bytes]}} {{path/to/file1}} {{path/to/file2}}

  • نمایش شماره بایتها و مقادیر تمامی تفاوت ها:

cmp {{[-l|--verbose]}} {{path/to/file1}} {{path/to/file2}}

  • مقایسه فایلها در حالت خاموش، تنها مقدار خروجی برنامه در ترمینال در دسترس است:

cmp {{[-s|--quiet]}} {{path/to/file1}} {{path/to/file2}}