I have two directories – one from earlier backup and second from newest backup. How do i compare what changes were made to files in directory from newest backup on Linux? Also how do i display changes in for example text and php files – i'm thinking about something like revision history on wikipedia where you see old version on one side of the screen and newest version on other and changes are highlighted. How do i achieve something like that?
edit:
How do i also compare remote dir with local?
Best Answer
From diff man page:
So to compare directories:
diff --brief -r dir1 dir2
To compare files side by side:
diff --side-by-side file1 file2