MediaWiki:Sitenotice
2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.

2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year.

2026-03-16: Special thanks to Don Barber for hosting a backup mirror of CoCopedia: https://cocopedia.dgb3.net

CMP

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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