*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: sum | Section: 1 | Source: UNIX v10 | File: sum.1
SUM(1) General Commands Manual SUM(1) NAME sum, treesum - sum and count blocks in a file SYNOPSIS sum [ -5ri ] [ file ... ] treesum [ file ... ] DESCRIPTION By default, sum calculates and prints a 32-bit checksum, a byte count and the name of each file. The checksum is also a function of the in- put length. If no files are given, the standard input is summed. Other summing algorithms are available. The options are -i Read file names from standard input. -r Sum with the algorithm of System V's sum -r and print the length (in 1K blocks) of the input. -5 Sum with System V's default algorithm and print the length (in 512-byte blocks) of the input. Sum is typically used to look for bad spots, to validate a file commu- nicated over some transmission line or as a quick way to determine if two files might be the same. Treesum is similar to sum -r, except that if file is a directory, then treesum recursively descends it, summing all non-directories encoun- tered. If no files are given, treesum recursively sums the current di- rectory. SEE ALSO wc(1) SUM(1)

Navigation Options