English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux cksum command is used to check whether the CRC of the file is correct. Ensure that the file is not damaged during the process of transferring from one system to another.
CRC is a troubleshooting method, the standard of this check method is specified by CCITT, and it can detect at least99.998% known errors.
Specify a file to be checked by the command "cksum", and the command will return the check result for the user to verify whether the file is correct and intact. If no file name is specified or the given file name is "-If " is used, the command "cksum" will read data from the standard input device.
cksum[--help][--version][file...]
Parameters:
--help: Online help.
--version: Display version information.
File…: The path of the file to be checked
Use the command "cksum" to calculate the checksum of the file "testfile1" to check the integrity of the file, enter the following command:
$ cksum testfile1
The above command will output the checksum and other related information, the specific output information is as follows:
1263453430 78 testfile1 //Output Information
In the above output information, "1263453430" represents the checksum, "78"Represents the number of bytes.
Note:If any character in the file is modified, the calculated CRC checksum value will change.