UNIX Guide, for beginners and Mac OS X users
You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) supportSupport - ask in our friendly forums.

Comparing files

You can display the line by line difference between two files with the diff command.

   diff file1 file2

The information given by the command tells you what changes need to be made for file1 and file2 to match. If there is no difference between the files you are returned to the shell prompt.

diff indicates which lines need be added (a), deleted (d) or changed (c).

Lines in file1 are identified with a (<) symbol: lines in file2 with a (>) symbol.


[Home]UNIX Guide home | [Search]search | index
Page URL: http://sillydog.org/unix/
[SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap]
This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006
Netscape NOW!Made on a Mac
support MozInfo701 and SillyDog701