The linux file command does a very good job in recognising file types and gives very fine-grained results. The diff tool is able to tell binary files f
file
diff
A fast way to do this in ubuntu is use nautilus in the "list" view. The type column will show you if its text or binary