comp
DevelopersDEC, IBM, Microsoft, Digital Research, Novell, Paul Vojta, ReactOS Contributors
ReleaseAugust 1981; 44 years ago (1981-08)
Operating systemOS/8, PC DOS, MS-DOS, FlexOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, FreeDOS, ReactOS
PlatformCross-platform
TypeCommand
LicenseFreeDOS: MIT
ReactOS: GNU GPL 2

In computing, comp is a command used on DEC OS/8,[1] DOS,[2] DR FlexOS,[3] IBM OS/2,[4] Microsoft Windows[5] and related computer operating systems such as ReactOS. It is used to perform comparisons of multiple computer files to show the differences between them.[6]

History

edit
COMP.COM (among other commands) in IBM PC DOS 1.0.

In DOS, the comp command first appeared in PC DOS 1.0[7] and has been included in most versions of MS-DOS and PC 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 the comp command.[8]

The FreeDOS version was developed by Paul Vojta and is licensed under the MIT License.[9] Ged Murphy developed the ReactOS version. It is licensed under the GNU GPL 2.[10]

The command is also available in the EFI shell.[11]

Syntax

edit

The command-syntax is:[12]

comp [<Data1>] [<Data2>] [/d] [/a] [/l] [/n=<Number>] [/c]

Parameters

edit
  • <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 Help

See also

edit

References

edit
  1. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  2. ^ Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, p. 206, ISBN 0078819040.
  3. ^ "FlexOS™ User's Guide" (PDF). bitsavers.org. Archived from the original (PDF) on 2019-09-25. Retrieved 2026-06-02.
  4. ^ "OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14. Retrieved 2019-07-20.
  5. ^ "Comp".
  6. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  7. ^ "Disk Operating System" (PDF). bitsavers.org. Retrieved June 2, 2026.
  8. ^ "DR DOS 6.0 User Guide Optimisation and Configuration Tips" (PDF). Archived from the original (PDF) on 2019-09-30. Retrieved 2019-08-13.
  9. ^ "FreeDOS 1.2 Updates Package - comp (FreeDOS Base)". Ibiblio.org. 2006-10-21. Retrieved 2022-09-04.
  10. ^ "Reactos/Reactos". GitHub. 3 January 2022.
  11. ^ "EFI Shells and Scripting". Intel. Archived from the original on 2009-01-30. Retrieved 2013-09-25.
  12. ^ MS-DOS and Windows command line comp command

Further reading

edit
edit


📚 Artikel Terkait di Wikipedia

UEFI

version of shell. The following is a list of commands supported by the EFI shell. alias attrib bcfg cd cls comp cp date dblk dh dmpstore echo Edd30 EddDebug

Fat binary

Firmware with EFI. However, by 2008, some of their Macs used 32-bit EFI and some used 64-bit EFI. For this reason, Apple extended the EFI specification

OpenVMS

software. Some of the changes included using the Extensible Firmware Interface (EFI) to boot the operating system, reimplementing the functionality previously

Power-on self-test

codes for many BIOSes. These POST beep codes are covered specifically on the CompTIA A+ Exam: Apple's Macintosh computers also perform a POST after a cold

List of equipment of the Finnish Army

Patriagroup.com. 2 June 2023. "Logistics Command to Purchase 29 Patria XA-300s for the Finnish Army". Logistics Command. puolustusvoimat.fi. Finnish Defence

Design of the FAT file system

and later 65526 (0xFFF6, FAT16) for future standardization. Microsoft's EFI FAT32 specification states that any FAT file system with less than 4085 clusters

Slackware

bootable EFI ISO. Portals: Linux Open-source software Volkerding, Patrick J. (July 17, 1993). "ANNOUNCE: Slackware Linux 1.00". Newsgroup: comp.os.linux

2022 in science

Heat Wave Hot Spot". The New York Times. Retrieved 21 August 2022. Rousi, Efi; Kornhuber, Kai; Beobide-Arsuaga, Goratz; Luo, Fei; Coumou, Dim (4 July 2022)