Query: sum
OS: opensolaris
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
sum(1) User Commands sum(1)NAMEsum - print checksum and block count for a fileSYNOPSISsum [-r] [file]...DESCRIPTIONThe sum utility calculates and prints a 16-bit checksum for the named file and the number of 512-byte blocks in the file. It is typically used to look for bad spots, or to validate a file communicated over some transmission line.OPTIONSThe following options are supported: -r Use an alternate (machine-dependent) algorithm in computing the checksum.OPERANDSThe following operands are supported: file A path name of a file. If no files are named, the standard input is used.USAGESee largefile(5) for the description of the behavior of sum when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).ENVIRONMENT VARIABLESSee environ(5) for descriptions of the following environment variables that affect the execution of sum: LC_CTYPE, LC_MESSAGES, and NLSPATH.EXIT STATUSThe following exit values are returned. 0 Successful completion. >0 An error occurred.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------------------------------------+ | ATTRIBUTE TYPE ATTRIBUTE VALUE | |Availability SUNWesu | |CSI Enabled | +-----------------------------------------------------------+SEE ALSOcksum(1), sum(1B), wc(1), attributes(5), environ(5), largefile(5)DIAGNOSTICSRead error is indistinguishable from end of file on most devices. Check the block count.NOTESPortable applications should use cksum(1). sum and usr/ucb/sum (see sum(1B)) return different checksums. SunOS 5.11 7 Nov 1995 sum(1)
Related Man Pages |
---|
sum(n) - mojave |
freebsd-cksum(1) - debian |
cksum(1) - osx |
sum(1) - osf1 |
sum(1) - osx |