CRC is a troubleshooting method. The standard of this verification method is specified by CCITT. At least 99.998% of known errors can be detected.
After the specified file is verified by the command "cksum", The Command returns the verification result for the user to check whether the file is correct. If no file name is specified or the given file name is "-", the command "cksum" reads data from the standard input device.
Syntax
Cksum [-- help] [-- version] [file...]
Parameters:
Instance
Run the following command to calculate the integrity of the file testfile1:
$ Cksum testfile1
After the preceding command is executed, information such as the verification code will be output. The specific output information is as follows:
126345343078testfile1 // output information
In the preceding output, "1263453430" indicates the verification code, and "78" indicates the number of bytes.
Note: If any character in the file is modified, the calculated CRC verification code value will be changed.