Comparing directories using diff

As I said in last post, Meld is incredible, beautiful and easy to use. But sometimes we need compare directories very quick or just create an automation to analyze the output. In this way we can use the very old command “diff”

 

diff -rq dir1/ dir2/

 

Where: (from diff manual)

-q, –brief
report only when files differ

-n, –rcs
output an RCS format diff

Leave a Reply

Your email address will not be published. Required fields are marked *