Comparing directories

You can use the diff command to compare the contents of two directories:

   diff directory1 directory2

The information given by the command tells you what to do to make the directories match. If there is no difference between the directories you are returned to the shell prompt.

diff reports if a file or directory is only to be found in directory1 or directory2. It also reports any line by line differences for files that are common to each directory.


[Home] [Search] [Index] This site maintained by guichard@whitman.edu