Command: bsum
BSUM - computes BSD checksums of files.
Syntax:
BSUM filename
Options:
- none -
Comments:
BSUM is a tiny tool (256 bytes!) that computes the BSD checksum of
any file. It requires only a few kilobytes of memory, and is fast
even on an 8086-class PC. BSUM supports files of any size (as long
as your file system is able to handle them). The BSD checksum is
displayed in hexadecimal format (ie. four alphanumeric characters,
like "C2E1"). BSUM is an excellent candidate for verifying data
integrity on systems that are very constrained in terms of disk
space, memory or CPU power. Typically, bsum can be used to verify
that files transferred by unreliable means arrived intact.
Examples:
echo "Hi, how are you?"> hi.txt
echo "Hi, how are you?"> howare.txt
echo Hi, how are you?> hi1.txt
echo Hi, how are you?> howare1.txt
bsum hi.txt gives result: E9E6
bsum howare.txt gives result: E9E6
bsum hi1.txt gives result: 93A8
bsum howare1.txt gives result: 93A8
hi.txt and howare.txt are identical, so the BSD checksums are
identical. Same with hi1.txt and howare1.txt.
See also:
comp
diskcomp
fc
md5sum
Copyright © 2017 Mateusz Viste, help version 2023 W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.