The sum command calculates a checksum for each input
It also displays the number of 512-byte blocks in each
If you do not specify any
or you specify
sum differs from cksum only in the format of the output. sum's output has the form
checksum blockcount filename
where blockcount is the number of 512-byte blocks in the file.
sum can calculate checksums in a variety of ways. The default checksum algorithm produces a 16-bit unsigned integer resulting from the arithmetic addition of each input byte. This checksum algorithm is insensitive to byte order.
uses a standard 16-bit Cyclical Redundancy Check (CRC-16).
uses the CCITT standard Cyclic Redundancy Check (CRC-CCITT). Data communications network protocols often use a cyclic redundancy check to ensure proper transmission. This algorithm is more likely to produce a different sum for inputs which differ only in byte order.
uses the POSIX.2 checksum algorithm.
enables the use of an alternate checksum algorithm which has the advantage of being sensitive to byte order.
produces a line containing the total number of blocks of data read, as well as the checksum of the concatenation of the input files.
Possible exit status values are:
Failure due to any of the following:
Unknown command line option.
x/OPEN Portability Guide 4.0.
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
The default checksum algorithm is compatible with
UNIX System V.2 and later.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.4 Documentation Build 39.