| comp | |
|---|---|
TheReactOS comp command | |
| Developers | DEC,IBM,Microsoft,Digital Research,Novell, Paul Vojta, ReactOS Contributors |
| Initial release | August 1981; 44 years ago (1981-08) |
| Operating system | OS/8,PC DOS,MS-DOS,FlexOS,SISNE plus,OS/2,eComStation,ArcaOS,Windows,DR DOS,FreeDOS,ReactOS |
| Platform | Cross-platform |
| Type | Command |
| License | FreeDOS:MIT ReactOS:GNU GPL 2 |
Incomputing,comp is acommand used onDECOS/8,[1]DOS,[2]DRFlexOS,[3]IBMOS/2,[4]MicrosoftWindows[5] and related computeroperating systems such asReactOS. It is used to perform comparisons of multiplecomputer files to show the differences between them.[6]

COMP.COM (among other commands) inIBM PC DOS 1.0.In DOS, thecomp command first appeared in PC DOS 1.0[7] and has been included in most versions ofMS-DOS andPC DOS. A newer command,fc was added in DOS 3.3 which allows for line comparisons in addition to binary comparisons.DR DOS 6.0 also includes an implementation of thecomp command.[8]
TheFreeDOS version was developed by Paul Vojta and is licensed under theMIT License.[9] Ged Murphy developed theReactOS version. It is licensed under theGNU GPL 2.[10]
The command is also available in theEFI shell.[11]
comp [<Data1>] [<Data2>] [/d] [/a] [/l] [/n=<Number>] [/c]
<Data1> – Location and name of the first file or set of files<Data2> – Location and name of the second file or set of files/d – Display differences in decimal format (Default is hexadecimal)/a – Display differences as characters/l – Display the number of the line, instead of the byte offset/n=<Number> – Compare only the specified number of lines for each file/c – Perform a non case-sensitive comparison/off[line] – Process files with the offline attribute set/? – Display HelpThisMicrosoft Windows article is astub. You can help Wikipedia byadding missing information. |