วิธีดูว่าไฟล์สองไฟล์เหมือนกันหรือไม่
ประเด็นสำคัญ
- ที่หนึ่ง
- ที่สอง
- เปรียบเทียบ
Whether two files with different names have the same contents cannot be known for certain from appearance or size. Checking and comparing their hash values with Check a File's Hash (SHA-256) settles it.
ขั้นตอน
- With "Choose one file", choose the first file.
- Copy the displayed hash (SHA-256) with "Copy SHA-256" and note it down.
- Press "Choose another file" and choose the second file.
- The second hash is displayed.
- Compare the two values. If they match, the contents are the same.
Pasting the first value into "Value to compare" and pressing "Compare" compares them automatically.
Using the compare feature
- Choose the first file and copy its hash.
- Choose the second with "Choose another file".
- Paste the first value into "Value to compare".
- Press "Compare". If they do not match, "No match" appears.
When you can judge them the same
- The hashes match completely
When you can judge them different
- The hashes differ by even one character
Caution: looks the same but differs
Re-saving a photo or opening and re-saving a PDF may change the contents (data) even though it looks the same. In that case the hashes differ.
เหมาะกับ
- Checking that a backup was copied correctly
- Checking whether files with similar names have the same contents
- Finding duplicate files
- Checking that a sent file and the received file are the same
ตัวอย่าง
Could not tell whether "report_final.pdf" and "report_final2.pdf" were the same. Checking the hashes, they matched. It was clear that one of them could be deleted.
Common stumbling blocks
- Only the modified date differs: if the contents are the same, the hash is the same.
- Looks the same yet does not match: the internal data differs.
- The file is large: it takes time.
Frequently asked questions
Even if the file names differ, is the hash the same?
If the contents are the same, yes.
สรุป
Compare two hashes; if they match, the contents are the same. The tip is not to judge by appearance alone.
ใช้ “ตรวจสอบแฮชของไฟล์ (SHA-256)” (ฟรี)เครื่องมือที่ใช้คู่กันได้ดี
- เปิดไฟล์ ZIP (แตกไฟล์): ดูว่ามีอะไรอยู่ใน ZIP และดึงไฟล์ที่ต้องการ
- สร้างไฟล์ ZIP: รวมไฟล์หลายไฟล์เป็น ZIP เดียว
- สร้างรหัสผ่านสุ่มที่รัดกุม: สร้างรหัสผ่านสุ่มที่รัดกุมได้ทันที
หากคู่มือนี้เป็นประโยชน์ ทิปเล็ก ๆ น้อย ๆ จะเป็นกำลังใจอย่างมาก
ส่งทิป (¥300)ส่งของขวัญ (Amazon wishlist)