Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cmp(1) [minix man page]

CMP(1)							      General Commands Manual							    CMP(1)

cmp - compare two files SYNOPSIS
cmp [-ls] file1 file2 OPTIONS
-l Loud mode. Print bytes that differ (in octal) -s Silent mode. Print nothing, just return exit status EXAMPLES
cmp file1 file2 # Tell whether the files are the same cmp -l file1 file2 # Print all corresponding bytes that differ DESCRIPTION
Two files are compared. If they are identical, exit status 0 is returned. If they differ, exit status 1 is returned. If the files cannot be opened, exit status 2 is returned. If one of the file arguments is -, then stdin is compared to the other file. SEE ALSO
comm(1), diff(1). CMP(1)

Check Out this Related Man Page

CMP(1)							    BSD General Commands Manual 						    CMP(1)

cmp -- compare two files SYNOPSIS
cmp [-l | -s] file1 file2 [skip1 [skip2]] DESCRIPTION
The cmp utility 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. Bytes and lines are numbered beginning with one. The following options are available: -l Print the byte number (decimal) and the differing byte values (octal) for each difference. -s Print nothing for differing files; return exit status only. The optional arguments skip1 and skip2 are the byte offsets from the beginning of file1 and file2, respectively, where the comparison will begin. The offset is decimal by default, but may be expressed as an hexadecimal or octal value by preceding it with a leading ``0x'' or ``0''. The cmp utility exits with one of the following values: 0 The files are identical. 1 The files are different; this includes the case where one file is identical to the first part of the other. In the latter case, if the -s option has not been specified, cmp writes to standard output that EOF was reached in the shorter file (before any differences were found). >1 An error occurred. SEE ALSO
diff(1), diff3(1) STANDARDS
The cmp utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible. BSD
June 6, 1993 BSD
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

TTL field???

Hi all, I wonder, how I can change Time To Live field for icmp packet in Redhat 7.1, kernel 2.4.2-2? I looked up in /proc/sys/net/ipv4 and did find this field in there. There should be a way to change TTL. If it's in header file, in which one? Thank you all :p (11 Replies)
Discussion started by: solvman
11 Replies

2. AIX

Did a Mistake with HACMP

Hi, I needed space on a FS, and when I've added the space on the filesystem, I did it trough the regular smitty fs inteface and not with smitty cl_lvm. Can someone help me to repair the situat before a faileover happen ? Thanks for your help,:mad: (13 Replies)
Discussion started by: azzed27
13 Replies

3. AIX

Using AIX HACMP and NFS together

Hi, need advice on this. Is it possible to assign a mountpoint from a SAN storage to server1 & server2. Use NFS to the same mountpoint from server2 so that concurrent access is allowed. Can this setup be used together with HACMP? If server1 crash, the mountpoint resource will swing to... (8 Replies)
Discussion started by: chongkls77
8 Replies

4. AIX

AIX 6.1 and NFS problem after HACMP config

Hello folks, I am facing a problem with NFS after doing the HACMP configuration Issue : The showmount -e pr2serv at pr1serv ,it is only showing 1 mount exported /oracle , instead of showing all 7 as per /etc/exports file. issue : while mounting /oracle at pr1serv getting permission... (8 Replies)
Discussion started by: filosophizer
8 Replies

5. AIX

HACMP adding disk for mirroring

Hi all, I have an HACMP (v5.3.0.0) cluster vg attached to ibm shark that need to be decommissioned. The data need to move to the HP EVA disk. The OS is on AIX 5200-10. The plan is to add a new disk from EVA & mirror the existing vg & break the mirror from Shark disk once the mirror finished. ... (12 Replies)
Discussion started by: CW15
12 Replies

6. AIX

Question about HACMP for active-active mode

Hi all, I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before. So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ? If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies

7. AIX

Does HACMP have bugs increasing filesystem or Logical volumes

Hello, Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error: # lsvg rootvg pr0oravg px0oravg pb0oravg pr0sapvg px0sapvg pb0sapvg pr1_pr2_vg pr2_px1_vg # #... (11 Replies)
Discussion started by: filosophizer
11 Replies

8. AIX

HACMP switch over

Hi I had an active passive cluster. Node A went down and all resource groups moved to Node B. Now we brought up Node A. What is the procedure to bring everything back to Node A. Node A #lssrc -a | grep cl clcomdES clcomdES 323782 active clstrmgrES cluster... (9 Replies)
Discussion started by: samsungsamsung
9 Replies

9. AIX

HACMP resource group State not STABLE

Hi, Not sure if this is the correct forum to post this on but maybe a mod could move it if not. When trying to move a HACMP resource group between lpars on AIX I receive the following. State not STABLE/RP_RUNNING or ibcasts Join for node 2 rejected, Clearing in join protocol flag... (11 Replies)
Discussion started by: elmesy
11 Replies

10. AIX

HACMP - RG move issue.

Hello Everyone, Hope you all doing well. I have configured a powerHA with 2 RG. Whenever am moving a RG to the 2 node, the 2 node becoming unavailable. But its working fine in the console also cluster not having any issues. Once i ran the tcp/ip configuration via smitty , the node... (9 Replies)
Discussion started by: gowthamakanthan
9 Replies

11. AIX

Increase LUN size in AIX with VIOS and HACMP

Hello! I have this infraestructure: - 1 POWER7 with single VIOS on Site A. - 1 POWER6 with single VIOS on Site B. - 1 LPAR called NodeA as primary node for PowerHA 6.1 on Site A. - 1 LPAR called NodeB as secondary (cold) node for PowerHA 6.1 on SiteB. - 1 Storage DS4700 on Site A. - 1... (8 Replies)
Discussion started by: enzote
8 Replies

12. AIX

Clstat not working in a HACMP 7.1.3 cluster

I have troubles making clstat work. All the "usual suspects" have been covered but still no luck. The topology is a two-node active/passive with only one network-interface (it is a test-setup). The application running is SAP with DB/2 as database. We do not use SmartAssists or other gadgets. ... (8 Replies)
Discussion started by: bakunin
8 Replies

13. AIX

AIX Hardware Migration w/ HACMP...Advice Needed

Hello Everyone, Hope you all are doing great! As you can see by the title on top, we are in the process of migrating alot of our servers from Power5 (physical) to Power8 (Virtual). Now it's turn for servers with HACMP Cluster on it. Let me lay out the environment like: OLD ENVIRONMENT: ... (12 Replies)
Discussion started by: uzair_rock
12 Replies

14. AIX

FileSystems under HACMP

Dear Fellows, I'm now working under a HACMP Cluster (version 7.1) with 2 nodes (Node1 active / Node2 passive), and 1 Resource Group on active node (Node1), which is UNMANAGED for boths nodes. So, all VG Data are on Node1. Then I had a JFS2 FileSystem full (located on one of these VG Data... (8 Replies)
Discussion started by: LoLo92
8 Replies

Featured Tech Videos