1CKSFV(1)                    General Commands Manual                   CKSFV(1)
2
3
4

NAME

6       cksfv - tests and creates simple file verification (SFV) listings
7

SYNOPSIS

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

DESCRIPTION

12       cksfv is a tool for verifying CRC32 checksums of files. CRC32 checksums
13       are used to verify that files are not corrupted. The algorithm is cryp‐
14       tographically  crippled  so  it  can not be used for security purposes.
15       md5sum (1) or sha1sum (1) are much better tools for checksuming  files.
16       cksfv should only be used for compatibility with other systems.
17
18       cksfv has two operation modes: checksum creation and checksum verifica‐
19       tion
20
21       In checksum creation mode cksfv outputs CRC32 checksums of files to  to
22       stdout, normally redirected to an .sfv file.
23
24       In  checksum verification mode  cksfv reads filenames from an sfv file,
25       and compares the recorded checksum values against recomputed  checksums
26       of files.
27
28

OPTIONS

30       These options are available
31
32       -b     Strip  dirnames  from  filenames  that are checksumed. loads the
33              files from original positions, but prints only basenames to cat‐
34              alogue in sfv file.
35
36       -c     Use  stdout for printing progress and final resolution (files OK
37              or some errors detected). This is useful for  external  programs
38              analysing output of cksfv. This also forces fflushes on the out‐
39              put when needed.
40
41       -C dir  Change current directory before proceeding with a  verification
42              operation.  This option is mostly obsoleted with -g option. Ear‐
43              lier this was used to verify checksums in a different directory:
44              cksfv -C foo -f foo/bar.sfv
45
46       -f file
47              Verify checksums in the sfv file
48
49       -g path
50              Go  to  the  path name directory and verify checksums in the sfv
51              file
52
53       -i     Ignore case in filenames. This is used in the checksum verifica‐
54              tion mode.
55
56       -L     Follow  symlinks  when  recursing subdirectories. This option is
57              used with the -r option.
58
59       -q     Enable QUIET mode (instead of verbose mode), only error messages
60              are printed
61
62       -v     Enable VERBOSE mode, this is the default mode
63
64       -r     recurse  directories  and check the .sfv files in each. Symlinks
65              are not followed by default. This option cannot be used with  -f
66              and -g options.
67
68

EXAMPLES

70       Verify checksums of files listed in 'foo/files.sfv':
71       cksfv -g foo/files.sfv
72
73       Create checksums for a set of files:
74       cksfv *.gz > files.sfv
75
76       Verify checksums of case-insensitive filenames listed in 'files.sfv'.
77       This is sometimes useful with files created by operating systems
78       that have case-insensitive filesystem names.
79       cksfv -i -g files.sfv
80
81       Check checksums of files 'foo' and 'bar' listed in 'files.sfv':
82       cksfv -g files.sfv foo bar
83
84       Create checksums of files matching /foo/bar/* and strip dirnames away:
85       cksfv -b /foo/bar/* > files.sfv
86
87       Recursively scan /foo/bar and verify each .sfv file:
88       cksfv -C /foo/bar -r
89
90       Same as previous, but starting from the current working directory
91       and also following symlinks during recursion:
92       cksfv -r -L
93
94

SEE ALSO

96       basename(1) dirname(1) md5sum(1) sha1sum(1)
97
98

AUTHOR

100       This  manual  page  was  originally  written by Stefan Alfredsson <ste‐
101       fan@alfredsson.org>.   It  was  later   modified   by   Heikki   Orsila
102       <heikki.orsila@iki.fi> and Durk van Veen <durk.van.veen@gmail.com>.
103
104
105
106                                                                      CKSFV(1)
Impressum