Tip Details Add a Related Tip

Rate as: Positive Negative

Read diffs easier

Geez... I've been using *NIX for 20 years, and I never knew that the diff command had an option to show the difference of files side-by-side. Normally when you diff a file, you get to see all the differences with line numbers and > and < symbols to indicate addition and deletion of content. But if you add the -y command to diff, like diff -y, then it shows both files side-by-side and it makes it *way* easier to see the differences.

You can also use this flag when performing diffs in CVS like so: diff -y -r version_1 -r version_2 file_name and it will also show the differences between the versions of the file in side-by-side mode.

This has completely changed my life for the better :)
Rating: 100% positive, 1 Vote
Categories: UNIX linux CVS command line
Added: on Dec 12, 2008 at 2:10 pm
Added By: an anonymous user
Searches: diff command cvs line unix

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Running Linux jobs even when disconnected

Categories: Linux UNIX command line
100% positive, 1 comment - last added on Dec 24, 2008 at 1:14 pm
– Tip added by an anonymous user on Dec 22, 2008 at 2:21 pm

Show calendars on the UNIX command line

100% positive, 0 comments
– Tip added by an anonymous user on Jan 20, 2009 at 4:45 pm

listing files on a single line

Categories: linux Unix command line
100% positive, 0 comments
– Tip added by an anonymous user on Feb 19, 2009 at 8:03 am

ssh and scp without passwords

Categories: shell Mac linux UNIX
100% positive, 2 comments - last added on Jun 19, 2009 at 8:29 am
– Tip added by an anonymous user on Dec 21, 2007 at 2:51 pm

Color coding the ls command in Fedora

100% positive, 0 comments
– Tip added by an anonymous user on Apr 25, 2008 at 8:27 am

Running background jobs

Categories: linux UNIX
100% positive, 0 comments
– Tip added by an anonymous user on Dec 04, 2008 at 10:04 am

Finding files older than a certain time on Linux

Categories: Linux find UNIX
no ratings, 0 comments
– Tip added by an anonymous user on Jul 27, 2009 at 1:47 pm

Forcing users to change their password

no ratings, 0 comments
– Tip added by an anonymous user on Sep 30, 2008 at 11:27 am

Empty the contents of a file

Categories: UNIX linux
no ratings, 0 comments
– Tip added by an anonymous user on Aug 21, 2008 at 9:09 am

Software Development Automation with Scripting Languages

Categories: linux unix scripting
no ratings, 0 comments
– Tip added by an anonymous user on Jun 05, 2008 at 2:40 pm

Running X11 programs from the terminal

no ratings, 0 comments
– Tip added by an anonymous user on Jan 28, 2008 at 8:04 am

Changing an already running job to execute in the background

Categories: linux UNIX Mac
no ratings, 0 comments
– Tip added by an anonymous user on Aug 06, 2007 at 11:57 am

Update your shell prompt

Categories: UNIX Mac linux shell
no ratings, 0 comments
– Tip added by an anonymous user on Jun 04, 2007 at 9:15 pm

Hacking Windows Using Linux

85% positive, 0 comments
– Tip added by an anonymous user on Jun 08, 2009 at 12:03 pm

How to execute chm files in linux

Categories: linux chm files hacks tricks
88% positive, 0 comments
– Tip added by an anonymous user on Jun 29, 2009 at 7:02 am

20 Free Operating Systems that are not Windows

85% positive, 0 comments
– Tip added by an anonymous user on Jul 05, 2009 at 8:47 am

Transform Linux to Windows 7

100% positive, 0 comments
– Tip added by an anonymous user on Jul 23, 2009 at 10:56 am

Run quick terminal commands on the Mac

no ratings, 0 comments
– Tip added by an anonymous user on Oct 05, 2009 at 12:30 pm

Manage your battery in linux

no ratings, 0 comments
– Tip added by an anonymous user on Sep 03, 2009 at 1:29 pm

Resetting the root password in Linux

Categories: Linux password root
0% positive, 1 comment - last added on Aug 01, 2009 at 1:15 am
– Tip added by an anonymous user on Feb 26, 2009 at 1:01 pm