Linux/Unix Commands





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX / UNIX cmd
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Introduction
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example A
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example B
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example C
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example D
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example E
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example F
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example G
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example H
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example I
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example J
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example K
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example L
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example M
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example N
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example P
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example R
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example S
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example T
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example U
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example V
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example W
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Y
Forums Ask your doubts
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example More about Linux
LINUX/UNIX Commands tutorial/reference - Find linux cmd, syntax, example Feedback
 





cmp Linux Commands


Tutorials Linux-commands

Topic

What is Linux cmp Command?



Explanation

cmp COMMAND:
     cmp linux command compares two files and tells you which line numbers are different.

SYNTAX:
  The Syntax is
     cmp [options..] file1 file2

OPTIONS:
     
- c Output differing bytes as characters.
- l Print the byte number (decimal) and the differing byte values (octal) for each difference.
- s Prints nothing for differing files, return exit status only.



EXAMPLE:
     
  1. Compare two files:
    cmp file1 file2

    The above cmp command compares file1.php with file2.php and results as follows.

    file1.php file2.php differ: byte 35, line 3

  2. Compare two files output differing bytes as characters:
    cmp -c file1.php file2.php

    The above cmp command compares file1.php with file2.php and results as follows.

    file1.php file2.php differ: byte 35, line 3 is 151 i 15





A Note

Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies