Compare two files byte by byte
low risk
Reports the first byte where two files differ — fast for binary files.
| Flag | Meaning |
|---|---|
-s | Silent; only the exit status |
-l | List all differing bytes |
cmp a.bin b.binFirst difference · explain & risk-check →Reference text is hand-written and may be incomplete — check man cmp for your version. Test destructive commands on a non-production system first.