compare compare (file1, file2[, buffsize]) Compares file1 to file2. Exported by default. If present, buffsize specifies the size of the buffer to use for the comparison.