YouTip LogoYouTip

Linux Comm Cksum

# Linux cksum Command [![Image 3: Linux Command Reference](#) Linux Command Reference](#) The Linux `cksum` command is used to check if the CRC of a file is correct. It ensures that a file is not corrupted during transfer from one system to another. CRC is an error-checking method. The standard for this checksum is specified by CCITT and can detect at least 99.998% of known errors. After a specified file is processed by the `cksum` command, the command returns a checksum result for the user to verify the file's integrity. If no file name is specified or if the given file name is "-", the `cksum` command reads data from the standard input device. ### Syntax cksum [file...] **Parameters**: * --help: Online help. * --version: Display version information. * file...: The path of the file(s) to be checked. ### Example Use the `cksum` command to calculate the integrity of the file "testfile1" by entering the following command: $ cksum testfile1 After executing the above command, it will output the checksum and related information. The specific output information is as follows: 1263453430 78 testfile1 //Output information In the output above, "1263453430" represents the checksum, and "78" represents the number of bytes. **Note:** If any character in the file is modified, the calculated CRC checksum value will change. [![Image 4: Linux Command Reference](#) Linux Command Reference](#)
← Linux Comm CmpLinux Comm Chown β†’