Latest web development tutorials

Linux cksum command

Linux command Daquan Linux command Daquan

CRC Linux cksum command is used to check the file are correct. Make sure the file transfer process from one system to another system is not damaged.

CRC checking is a debugging mode, the calibration standard method specified by the CCITT, at least detectable 99.998% of known bugs.

Specify the file by the instruction "cksum" After verification, the command returns the check result for the user to check whether the file is correct. If the file name or specify any given file name is "-", the instruction "cksum" reads the data from the standard input device.

grammar

cksum [--help][--version][文件...]

Parameters:

  • --help: online help.
  • --version: display version information.
  • File ...: You need to check the file path

Examples

Using the command "cksum" computing file "testfile1" integrity, enter the following command:

$ cksum testfile1       

After executing the above command, the output checksum and other information related to the specific output is as follows:

1263453430 78 testfile1         //输出信息 

Output above, the "1263453430" means check code "78" indicates the number of bytes.

Note: If thefile has been modified in any characters, will change the value of the CRC calculation.

Linux command Daquan Linux command Daquan