Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
service
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
Freenet DSL
Who's Online
6 user(s) are online (4 user(s) are browsing encyclopedia)

Members: 0
Guests: 6

more...
partner

Cmp

=Other uses of CMP=

: This article is about software. For the semiconductor polishing process see Chemical-mechanical planarization. For the pain in the knee see Chondromalacia patellae. For the military vehicles see Canadian Military Pattern. For the school maths iniative, see Connected Mathematics Project.

=cmp (command)=

cmp is a command line utility for computer systems that use a Unix operating system. It compares two Computer file 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.

=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=

    Diff