Linux – How to diff directories for different files, but not line-by-line

command linediff()linuxshell

I want to see, recursively, files that are different in two directories. Diff can do this, but it shows me the line-by-line differences, which I don't want. Is there a tool that does this, or a way to do this with Diff ( I read the man page, I didn't see anything ) ?

Best Answer

What about

diff -rq DIR1 DIR2

or

diff -rqb DIR1 DIR2

-r is recursive

-q is for brief, and will just tell you if the files are different (i.e., it won't show the line-by-line differences)

-b ignores whitespace