How to use the Linux cksum command

Source: Internet
Author: User

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:

  • -- Help: online help.

  • -- Version: displays version information.

  • File... : File path to be checked

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.