|
Compare directories with diff |
 vote
 |
|
The Linux command diff can be used to create a script that will list the differences between two directories. This comparison is often very useful when writing scripts.
The diff command compares two files or directories and returns the differences. This provides you a way to monitor changes in an important directory like /etc which houses most configuration files on a Linux system. In order for this to work properly you will need to create a file that lists the content of the /etc directory so that you can make a comparison.
| | |
| |
|
| | read more | mail this link | score:6517 | -aweber, December 2, 2011 |
|
|