Cksum


From Linuxconfig.org

Jump to: navigation, search

.. back to the list of Linux Commands

Name

cksum - checksum and count the bytes in a file

Synopsis - man page

cksum [FILE]...
cksum [OPTION]

Examples

Create file with following text:

echo "Samba file and printer sharing is supported by all Linux Distributions: Suse Linux, Debian Linux, Mandrake Linux, Red Hat Linux, Fedora Linux, Gentoo Linux ." > file.txt
Image:cksum01.gif
$ cksum file.txt
Image:cksum02.gif

cksum calculate a cyclic redundancy check (CRC) of given file. Users can check the integrity of file and see if the file has been modified. use your favorite text editor and remove a "." from the end of the sentence.

$ cat file.txt
Image:cksum03.gif
$ cksum file.txt
Image:cksum04.gif

.. back to the list of Linux Commands

Personal tools
Linux Commands