Diff files from two folders

Posted on Sunday February 13, 2011 / by Eric Potvin

Here's a simple command to check the difference between two folders.

diff -qr /home/user/path/ /home/other_user/path/

For example, you are working on an SVN project X with a friend using different branches. You want to check which files he modified before committing your files.

You simply need to fun this command:

diff --exclude=.svn -qr /home/user/path/ /home/other_user/path/