CKSFV

NAME

cksfv − tests and creates simple file verification (SFV) listings

SYNOPSIS

cksfv[-bciqrL] [-C dir] [-f file] [-g path] [file ...]

DESCRIPTION

cksfv is a tool for verifying CRC32 checksums of files. CRC32 checksums are used to verify that files are not corrupted. The algorithm is cryptographically crippled so it can not be used for security purposes. md5sum (1) or sha1sum (1) are much better tools for checksuming files. cksfv should only be used for compatibility with other systems.

cksfv has two operation modes: checksum creation and checksum verification

In checksum creation mode cksfv outputs CRC32 checksums of files to to stdout, normally redirected to an .sfv file.

In checksum verification mode cksfv reads filenames from an sfv file, and compares the recorded checksum values against recomputed checksums of files.

OPTIONS

These options are available

−b

Strip dirnames from filenames that are checksumed. loads the files from original positions, but prints only basenames to catalogue in sfv file.

−c

Use stdout for printing progress and final resolution (files OK or some errors detected). This is useful for external programs analysing output of cksfv. This also forces fflushes on the output when needed.

−C dir

Change current directory before proceeding with a verification operation. This option is mostly obsoleted with -g option. Earlier this was used to verify checksums in a different directory: cksfv -C foo -f foo/bar.sfv

−f file

Verify checksums in the sfv file

−g path

Go to the path name directory and verify checksums in the sfv file

−i

Ignore case in filenames. This is used in the checksum verification mode.

−L

Follow symlinks when recursing subdirectories. This option is used with the -r option.

EXAMPLES

Verify checksums of case-insensitive filenames listed in ’files.sfv’.
This is sometimes useful with files created by operating systems
that have case-insensitive filesystem names.
cksfv -i -g files.sfv