MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

CMP

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search

CMP

CMP compares 2 files at the byte level. It will display the file offset and the value of the byte from every file when a difference is find.

Syntax: CMP <path1> <path2>

Example:

CMP /do/CMDS/xmode /d1/CMDS/xmode

If the files are identical, it returns

Differences
None ...
Bytes compared:  00000439
Bytes different: 00000000

If the files are different, the result will be something like

Differences
byte      #1 #2
========  == ==
00000007  80 81
00000008  66 67
0000004C  70 58
Bytes compared:  00000439
Bytes different: 00000003