Contents[Hide]

1. Name

cksum [man page] - checksum and count the bytes in a file

2. Synopsis

cksum [FILE]...
cksum [OPTION]

3. Examples

Create a file file.txt with the following text:

Samba file and printer sharing is supported by  
all Linux Distributions:Suse Linux, Debian
Linux, Mandrake Linux, Red Hat Linux,
Fedora Linux, Gentoo Linux .

cksum see content of the file

$ cksum file.txt 

cksum generate cksum number
cksum calculates a cyclic redundancy check (CRC) of an any given file. Users can check the integrity of any file and see if the file has been modified. Use your favorite text editor and remove a "." from the end of the sentence to see that CRC will change.

$ cat file.txt 

cksum modified file content

$ cksum file.txt 

cksum generates different cksum number

Free Linux eBooks

Linux Technical Writer

LinuxCareer, Casual, Volunteer, Home Based

Do you wish to join Linuxcareer.com project and find out how to be a technical writer? We are now looking for volunteers to help us write tutorials and share them with Linux community

  • Casual work from home
  • 10 articles / year

Any active Linuxcareer.com’s author will be entitled to following benefits:

  • actively participate in Linuxcareer.com’s decision making process
  • feedback and help

APPLY

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top