Loading..
  • 24/7 Support

    Call (347) XXX-XXXX

  • Best Support

    support@hostingrobotik.com

คำสั่ง cmp ใช้อย่างไร 0 0

Last updated on Jul 15, 2022 04:21 in คำสั่งพื้นฐาน Linux
Posted BySale

คำสั่ง cmpใช้สำหรับเปรียบเทียบข้อมูลทั้ง 2 file ในระดับ bytes

ตัวอย่างการใช้งาน

การเปรียบเทียบ 2 file เพื่อหา bytes ต่างกัน

คำสั่ง cmp <file1> <file2>

การเปรียบเทียบข้อมูล bytes ที่ต่างกัน

คำสั่ง cmp -b <file1> <file2>

 

การตั้งค้า ofset หริอจุดที่จะเริ่มเปรียบเทียบแต่ละฝ่าย

คำสั่ง cmp -l <file1> <file2> <bytes nuber file1>  <bytes nuber file2>

** The time is base on UTC timezone