|
|
1.1 root 1: .TH SUM 1
2: .SH NAME
3: sum, md5sum \- sum and count blocks in a file
4: .SH SYNOPSIS
5: .B sum
6: [
7: .B -5r
8: ]
9: [
10: .I file ...
11: ]
12: .PP
13: .B md5sum
14: [
15: .I file ...
16: ]
17: .SH DESCRIPTION
18: By default,
19: .I sum
20: calculates and prints a 32-bit hexadecimal checksum,
21: a byte count,
22: and the name of
23: each
24: .IR file .
25: The checksum is also a function of the input length.
26: If no files are given,
27: the standard input is
28: summed.
29: Other summing algorithms are available.
30: The options are
31: .TP
32: .B -r
33: Sum with the algorithm of System V's
34: .B "sum -r"
35: and print the length (in 1K blocks) of the input.
36: .TP
37: .B -5
38: Sum with System V's default algorithm
39: and print the length (in 512-byte blocks) of the input.
40: .PP
41: .I Sum
42: is typically used to look for bad spots,
43: to validate a file communicated over
44: some transmission line or
45: as a quick way to determine if two files on different machines might be the same.
46: .PP
47: .B Md5sum
48: computes the 32 hex digit RSA Data Security, Inc. MD5 Message-Digest Algorithm
49: described in RFC1321.
50: If no
51: .I files
52: are given,
53: the standard input is
54: summed.
55: .SH SOURCE
56: .B /sys/src/cmd/sum.c
57: .br
58: .B /sys/src/cmd/md5sum.l
59: .SH "SEE ALSO"
60: .IR cmp (1),
61: .IR wc (1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.