FACTOID # 37: American women have the most powerful jobs.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Cmp (Unix)

cmp is a command line utility for computer systems that use a Unix operating system. It compares two files of any type and writes the results to the standard output. By default, cmp is silent if the files are the same; if they differ, the byte and line number at which the first difference occurred is reported. A command line interface or CLI is a method of interacting with a computer by giving it lines of textual commands (that is, a sequence of characters) either from keyboard input or from a script. ... A BlueGene supercomputer cabinet. ... Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®) is a computer operating system originally developed in the 1960s and 1970s by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ... An operating system (OS) is a set of computer programs that manage the hardware and software resources of a computer. ... A computer file is a collection of information that is stored in a computer system and can be identified by its full path name. ... The standard streams are a set of input and output channels featured in Unix and Unix-like operating systems, and provided by the standard I/O library (stdio. ... In computer science a byte is a unit of measurement of information storage, most often consisting of eight bits. ...

Contents

Switches

cmp may be qualified by the use of the following switches, (the long versions are in brackets):

  • -b (--print-bytes) - Print differing bytes.
  • -i SKIP (--ignore-initial=SKIP) - Skip the first SKIP bytes of input.
  • -i SKIP1:SKIP2 (--ignore-initial=SKIP1:SKIP2) - Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of FILE2.
  • -l (--verbose) - Output byte numbers and values of all differing bytes.
  • -n LIMIT (--bytes=LIMIT) - Compare at most LIMIT bytes.
  • -s (--quiet --silent) - Output nothing; yield exit status only.
  • -v (--version) - Output version info.
  • --help - Outputs a help file.

Return values

  • 0 - files are identical
  • 1 - files differ
  • 2 - inaccessible or missing argument

See also

Basic general information about file comparison software. ... This is a list of Unix programs. ...

External links

  • Comparing and Merging Files: Invoking cmp The section of the manual of GNU cmp in the diffutils free manual.


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m