FUN WITH LINUX

Find out the differences between to directories

4 January 2015

Sometimes it is useful to compare to directories and display the differences. diff can do the trick for you

diff -r dir1/ dir2/

If you just want a overview about the differences then just use “brief”:

diff --brief -r dir1/ dir2/

git can show you the differences too, and it can do it colorful if you want

git diff dir1/ dir2/
[ Linux  Sysadmin  Bash  One-Liner  git  ]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti