- Sum (Unix)
Sum is a core
GNU utility written byKayvan Aghaiepour and David MacKenzie and distributed with theUNIX - andLinux -based operating systems. This utility outputs thechecksum of each argument file, as well as the number of blocks they take on disk. ["Sum" manual page available with most *NIX distributions; invoked viaman sum
]According to the manual,
sum
uses two differentalgorithm s for calculating the checksum and blocks, theSystem V algorithm and theBSD (default) algorithm. Switching between the two algorithms is done via inline option parameters.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 sum algorithm, use 1K blocks (defeats -s)
*-s
,--sysv
** use System V sumalgorithm , use 512 bytes blocks
*--help
** display the help screen and exit
*--version
** output version information and exitWhen no file parameter is given, or when FILE is
-
, thestandard input is used as input file.References
ee also
*
GNU Core Utilities
*UnxUtils
Wikimedia Foundation. 2010.