LinuxCommandLibrary

sum

Compute legacy file checksums

TLDR

Calculate checksum

$ sum [file]
copy
Use System V algorithm
$ sum -s [file]
copy
Use BSD algorithm
$ sum -r [file]
copy

SYNOPSIS

sum [options] [file...]

DESCRIPTION

sum computes file checksums and block counts. Legacy checksum utility. For security purposes, use sha256sum or similar modern hash functions instead.

PARAMETERS

-r

Use BSD algorithm (default).
-s, --sysv
Use System V algorithm.

CAVEATS

Not cryptographically secure. Use sha256sum for integrity verification.

SEE ALSO

cksum(1), md5sum(1), sha256sum(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community