If you are using diff command in Linux/Ubuntu to view diff between two files then definitely colordiff is very awesome tool for you. As compared to diff command it shows the difference between two files in color highlighting. As diff command is not very useful for visual inspection.
To use colordiff first you need to install
How to Install Colordiff In Ubuntu
To install colordiff in ubuntu type
1 |
sudo apt-get install colordiff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
rajkumar@rajkumar@desktop:~$ sudo apt-get install colordiff Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libbabl-0.0-0 libgegl-0.0-0 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: colordiff 0 upgraded, 1 newly installed, 0 to remove and 100 not upgraded. Need to get 14.5 kB of archives. After this operation, 111 kB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu/ precise/universe colordiff all 1.0.9-1 [14.5 kB] Fetched 14.5 kB in 0s (15.9 kB/s) Selecting previously unselected package colordiff. (Reading database ... 224028 files and directories currently installed.) Unpacking colordiff (from .../colordiff_1.0.9-1_all.deb) ... Processing triggers for man-db ... Setting up colordiff (1.0.9-1) ... W: Duplicate sources.list entry http://archive.canonical.com/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_dists_precise_partner_binary-i386_Packages) W: Duplicate sources.list entry http://archive.canonical.com/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_dists_precise_partner_binary-i386_Packages) W: Duplicate sources.list entry http://archive.canonical.com/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_dists_precise_partner_binary-i386_Packages) W: Duplicate sources.list entry http://deb.opera.com/opera/ stable/non-free i386 Packages (/var/lib/apt/lists/deb.opera.com_opera_dists_stable_non-free_binary-i386_Packages) |
Once it is installed you can use the Colordiff command for checking diff
Syntax-
1 |
colordiff file1 file2 |