Changes

How Do I: A Linux Q&A

708 bytes added, 16:44, 26 February 2019
The following lines were added (+) and removed (-):
== [COMPARE FILES IN LINUX] ==There are a number of tools to accomplish this.  Tools for binary files and for text files, and a combination of the two exist.  Common examples:*cmp - compare two files byte by byte*diff - compare files line by linecmp' reports the differences between two files character by character, instead of line by line. As a result, it is more useful than 'diff' for comparing binary files. For text files, 'cmp' is useful mainly when you want to know only whether two files are identical.*comm - compare two sorted files line by lineOther commands: dircmp, uniq, ...In an example, lets compare two files without regards to binary or text, just to determine if identical.
Bureaucrat, administrator
16,221
edits