Sum (Unix)
|
|
This article's tone or style may not reflect the formal tone used on Wikipedia. Specific concerns may be found on the talk page. See Wikipedia's guide to writing better articles for suggestions. (December 2007) |
Sum is a core GNU utility written by Kayvan Aghaiepour and David MacKenzie and distributed with the UNIX- and Linux-based operating systems. This utility outputs the checksum of each argument file, as well as the number of blocks they take on disk.[1]
According to the manual page, sum uses two different algorithms for calculating the checksum and blocks, the SYSV checksum algorithm and the BSD checksum (default) algorithm. Switching between the two algorithms is done via command line options.
The algorithms implemented in this program are less reliable than more modern checksum methods. The GNU manual page states: "sum is provided for compatibility; the cksum program is preferable in new applications."
The sum utility is invoked from the command line according to the following syntax:
sum [OPTION]... [FILE]...
with the possible option parameters being:
-r- use BSD checksum algorithm, use 1K blocks (defeats -s)
-s,--sysv- use SYSV checksum algorithm, use 512 bytes blocks
--help- display the help screen and exit
--version- output version information and exit
When no file parameter is given, or when FILE is -, the standard input is used as input file.
[edit] References
- ^ Sum manual page available with most *NIX distributions; invoked via
man sum
[edit] See also
| This Unix-related article is a stub. You can help Wikipedia by expanding it. |
| This installation software article is a stub. You can help Wikipedia by expanding it. |