cksum
checksum and count the bytes in a file
Synopsis
cksum
[FILE]...
cksum [OPTION]
add an example, a script, a trick and tips
examples
source
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 }'`"
source
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
description
Print CRC
checksum and byte counts of each FILE.
--help
display this help and exit
--version
output version information and
exit
copyright
Copyright © 2012 Free Software Foundation, Inc. License GPLv3+:
GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
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:
<http://www.gnu.org/software/coreutils/>
General help using GNU software:
<http://www.gnu.org/gethelp/>
Report cksum translation bugs to
<http://translationproject.org/team/>
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.
author
Written by Q.
Frank Xia.