|
|
HP-UX Reference > Ssum(1)HP-UX 11i Version 2: December 2007 Update |
|
NAMEsum — print checksum and block or byte count of file(s) SYNOPSISsum [-r] [-p] [file ...] Remarkssum is obsolescent and should not be used in new applications that are intended to be portable between systems. Use cksum instead (see cksum(1)). DESCRIPTIONsum calculates and prints to standard output a checksum for each named file, and also prints the size of the file in 512 byte blocks, rounded up. The default algorithm is a 16-bit sum of the bytes in which overflow is ignored. Alternate algorithms can be selected with the -r and -p options. Standard input is used if no file names are given. sum is typically used to verify data integrity when copying files between systems. RETURN VALUEsum returns the following values upon completion:
If an inaccessible file is encountered, sum continues processing any remaining files, but the final exit status is affected. DIAGNOSTICSRead error conditions are indistinguishable from end of file on most devices; check the block or byte count. WARNINGSThis command is likely to be withdrawn from X/Open standards. Applications using this command might not be portable to other vendors' platforms. The usage of cksum(1) is recommended. |
|