How to force diff to compare binary files

Use the --text flag to force diff to compare files in text mode even if it thinks they are binary files:

example.sh
diff --text a.txt b.txt

 


Check out similar posts by category: Linux