Directory Comparison in UNIX/Linux

In UNIX/Linux, you can compare the content difference between 2 directory.  Use the command diff to do the comparison.

# ls
DHIYA ITSITI
# diff DHIYA ITSITI
Only in DHIYA: telor
Only in ITSITI: megi
Only in DHIYA: chicken
Only in ITSITI: itik
Only in ITSITI: kambeng
Only in DHIYA: cicak
Common subdirectories: DHIYA/ketam and ITSITI/ketam
Only in ITSITI: ayamas

You May Also Like

Leave a Reply?