Here are two commands used for file and directory comparisons. Diff is for files and dircmp is for directories. Personally, I routinely use the diff command to compare files. Here are examples of their use.
Compare two files
# diff file1 file2
Show file differences a screenful at a time if output is greater than a screen
#diff files1 files2 | pg
Compare two directories
#dircmp dir1 dir2
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
No comments:
Post a Comment