File Compare Explained

fc
Author:Mani A. Ulloa[1]
Developer:Microsoft, IBM, Digital Research, Novell
Programming Language:MS-DOS

x86 assembly language
FreeDOS: C

Operating System:MS-DOS, PC DOS, OS/2, eComStation, ArcaOS, Windows, DR DOS, FreeDOS
Platform:Cross-platform
Genre:Command
License:MS-DOS: MIT
FreeDOS: GPLv2+

In computing, fc (File Compare) is a command-line program in DOS, IBM OS/2 and Microsoft Windows operating systems, that compares multiple files and outputs the differences between them.[2] [3] It is similar to the Unix commands [[comm]], [[cmp (Unix)|cmp]] and [[diff]].

History

The fc command has been included in Microsoft operating systems since MS-DOS 2.11 (e.g. on the 1984/85 DEC Rainbow release)[4] and is included in all versions of Microsoft Windows.[5] fc has also been included in IBM OS/2 Version 2.0.[6]

DR DOS 6.0 includes an implementation of the command.[7]

The command is also available in FreeDOS. This implementation is licensed under the GPLv2+.[8]

Functionality

fc can compare text files as well as binary files.[9] The latest versions can compare ASCII or Unicode text. The result of comparisons are output to the standard output. The output of fc is intended primarily to be human readable and may be difficult to use in other programs.

See also

Further reading

External links

Notes and References

  1. https://www.os2museum.com/wp/dos/dos-2-0-and-2-1/ OS/2 Museum
  2. Web site: fc Microsoft Docs . Microsoft.com . 2019-06-20.
  3. Web site: Fasthelp . Technet.microsoft.com . 20 February 2014 . 2016-06-15.
  4. Rainbow MS-DOS Version 2.11 Documentation : Digital Equipment Corporation October 1984
  5. https://www.computerhope.com/fchlp.htm MS-DOS and Windows command line fc command
  6. http://www.tavi.co.uk/os2pages/pdf/gg243731_OS2_V2_0_Vol_2_DOS_and_Windows_Environment.pdf OS/2 2.0 Redbooks Volume 2 - DOS and Windows Environment (GG24-3731)
  7. https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips
  8. Web site: FreeDOS 1.2 Updates Package - fc (FreeDOS Base) . Ibiblio.org . 2005-01-10 . 2022-09-04.
  9. https://ss64.com/nt/fc.html FC - file compare - Windows CMD - SS64.com