I'm looking for something that will compare directories and files like Beyond Compare does for windows.
Its mainly for use of source control, but I need to use it for deployment as well.
|
I'm looking for something that will compare directories and files like Beyond Compare does for windows. Its mainly for use of source control, but I need to use it for deployment as well. |
|||||||||||||||||||||
|
Meld
Meld is a tool that can compare and merge files and directories. It is a GUI analog to the standard Also, lots of source control systems (such as |
|||||||||||||||||||||
|
|
Diff is your friend.
This will compare all files that are common between path1 and path2. If you change |
|||||||||
|
|
'Beyond Compare' is available for Linux too. Check their download url: http://www.scootersoftware.com/download.php |
|||||
|
|
Use the
If you want to write the output to a file, redirect it:
|
|||
|
|
|
The interface might not be real sexy, but it's extremely powerful!
And if you were used to other *Commander (like Norton, or the likes), you won't be lost. |
|||||
|
Command line toolsInspired by this blog entry. diffListing different files:
Listing also content:
rsyncIf the two directories are not on the same machine,
You can ommit
|
|||
|
|
Krusader
Krusader is a free tool (available in the Software Centre) that shows folder contents in comparison and you can synchronize with a lot of different options. You can filter while synchronising and comparing.
To compare file contents you simply mark two files select "file" > "compare content" and they are compared on a letter by letter basis. the default comparing tool used by krusader is the default KDE tool "Kompare". You can set krusader to use any other comparison tool - like for example one of the above. This is the most complete solution I ever found and it's very convenient. And it supports all the function keybindungs used by midnight commander (norton commander syntax). |
|||||||||
|
KDiff3
It is a graphical front-end to diff for KDE users (or if you don't mind using Qt apps). There is also dirdiff |
||||
|
|
|
|
||||
|
|
|
Unison is a fast file synchronization tool that uses the rsync algorithm and lets you preview differences before updating between 2 locations, be they remote or local. |
|||
|
|
|
I learned about hashdeep two weeks ago. And it has some strong advantages:
Verbose output is like:
|
||||
|
|
|
Try also FreeFileSync. It has a decent interface, acceptable comparing speed, good filtering of the comparison result, differents ways of syncrhronization. It comes with a folder monitoring tool (RealTimeSync) that can launch FreeFileSync (actually any command or script) when that specific folder (or folders) or the files within are changed. Really worth a try. More info about it here or here, where you have a PPA, too From their page, the key features:
I'd add it can manage deleted files, moving them to Trash or a folder specified by user. To point a disadvantage: program documentation focuses quite a bit on Windows, less on Linux. But it does its work nicely. |
|||
|
|
|
You can use diffuse:
|
|||||
|
|
A good way to do this comparison is to use "find" with "md5sum", then a "diff". Example: Use find to list all the files in the directory then calculate the md5 hash for each file and pipe it to a file:
Do the same procedure to the another directory:
Then compare the result two files with "diff":
This strategy is very useful when the two directories to be compared are not in the same machine and you need to make sure that the files are equal in both directories. Another good way to do the job is using git
Best regards! |
|||
|
|
|
You can try meld. It's the repositories and provides a GUI for file or folder comparison. |
|||||
|
|
Eclipse IDE is a bit heavyweight if you're just doing comparisons, but it does do a good job of that, amongst other things. You can select 2 projects, paths or files and compare them with each other, and also synchronize with source control servers. |
|||
|
|
|
IMHO FreeFileSync is very good and more useful than Meld. It's fast and stable, can do costomizable synchronizations and can also export the result of the comparison into a csv file. |
|||
|
|
|
Cross-platform, easy, no fuss & profile saving features make Jfilesync my top choice |
|||
|
|
To compare files
You can use the command
output would be
To compare dirs (your need):you can use the diff command:
|
|||
|
|