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 [-bciqrLR] [-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 can
57              be used with the -r and -R options.
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       -R     recurse  directories  and  read checksum for each file. Symlinks
69              are not followed by default.
70
71

EXAMPLES

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

SEE ALSO

99       basename(1) dirname(1) md5sum(1) sha1sum(1)
100
101

AUTHOR

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