cksum command in Linux with examples

cksum command in Linux is used to display a CRC(Cyclic Redundancy Check) value, the byte size of the file and the name of the file to standard output. CRC is unique for each file and only changes if the file is edited. It is used to check whether the file had accidentally corrupted while transfer. If the CRC is same after the transfer, it means that the file had not accidentally corrupted.

Syntax:

cksum [FileName]

Note: An intruder can corrupt a file in such a way that it produces the same CRC value after the transfer. That is why it is only checked for accidental corruption.

Options:

  1. –help : It displays help information.

  2. –version : It displays version information.



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.