Query: sum
OS: hpux
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
sum(1) General Commands Manual sum(1)NAMEsum - print checksum and block or byte count of file(s)SYNOPSIS[file ...] Remarks is obsolescent and should not be used in new applications that are intended to be portable between systems. Use instead (see cksum(1)).DESCRIPTIONcalculates 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 and options. Standard input is used if no file names are given. is typically used to verify data integrity when copying files between systems. Options recognizes the following options: Use an alternate algorithm in which the 16-bit sum is right rotated with each byte in computing the checksum. Use the 32-bit cyclical redundancy check (CRC) algorithm used byRETURN VALUEreturns the following values upon completion: All files were processed successfully. One or more files could not be read or some other error occurred. If an inaccessible file is encountered, 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.SEE ALSOcksum(1), wc(1).STANDARDS CONFORMANCEsum(1)
Related Man Pages |
---|
cksum(1) - mojave |
sum(n) - redhat |
cksum(1) - opendarwin |
sum(1) - opendarwin |
sum(1) - sunos |