Linux Commands Examples

A great documentation place for Linux commands


checksum and count the bytes in a file


cksum [FILE]...

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


cksum -b -a md5 $1
cksum -b -a rmd160 $1
cksum -b -a sha1 $1
cksum -b -a sha256 $1
echo "SIZE ($1) = `ls -l $1 | awk '{ print $5 }'`"
export JPATH=/home/joey/j
source /home/joey/j/startj simple
cksum `find /www/active-cvs/bristol/ -type f | notindir CVS cache log logs | grep -v '\.b4sr$'` > /www/bristolnow.cksum
cksum `find /www/active-cvs/bristol/ -type f | notindir CVS cache log logs | grep -v '\.b4sr$'` > /www/bristolnow.cksum
jfcsh -bothways /www/bristol*.cksum


Print CRC checksum and byte counts of each FILE.


display this help and exit


output version information and exit


Copyright © 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

reporting bugs

Report cksum bugs to bug-coreutils[:at:]gnu[:dot:]org
GNU coreutils home page: <>
General help using GNU software: <>
Report cksum translation bugs to <>

see also

The full documentation for cksum is maintained as a Texinfo manual. If the info and cksum programs are properly installed at your site, the command

info coreutils 'cksum invocation'

should give you access to the complete manual.


Written by Q. Frank Xia.

How can this site be more helpful to YOU ?

give  feedback