Calculate file checksums and block counts
The sum command is used to calculate and display the checksum and the number of disk blocks for specified files.
sum (options) (parameters)
-r: Use the BSD checksum algorithm with a block size of 1k.
-s: Use the System V checksum algorithm with a block size of 512 bytes.
File list: List of files for which to calculate the checksum and disk blocks.
Calculate file checksum:
[root@localhost ~]# sum insert.sql
00827 12