Open In App

cksum command in Linux with examples

Improve
Improve
Like Article
Like
Save
Share
Report

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 the same after the transfer, it means that the file had not been accidentally corrupted.

Syntax of `cksum` command in Linux

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 Available in `cksum` command in Linux

  1. –help : It displays help information.
  2. –version : It displays version information.


Last Updated : 15 Sep, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads