search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Programming Dictionary

Online technical manual for service programmers
Popular searches:
Dictionary homepage Server Linux Linux cmp command
Linux cmp command Detailed instructions for use

Linux cmp command

Chinese translation Recent Updates: 2018-06-13 09:19:21

compression compression;corrugated metal pipe corrugated metal pipe;compressor compressor;compromise compromise

Linux cmp command syntax

Function: cmp command is used to compare two files for differences.

Syntax: cmp [-clsv][-i <number of characters>][--help][first file][second file]

Linux cmp command example

To determine if two files are the same, enter:

cmp prog.o.bak prog.o

This compares prog.o.bak and prog.o. If the files are identical, no message is displayed. If the files are different, the first different location is shown; for example:

prog.o.bak prog.o differ: char 4, line 1
Linux cmp command