GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  RDIGEST (1)

NAME

rdigest - calculate message digests of files and directories

CONTENTS

Synopsis
Description
See Also
History
Authors

SYNOPSIS

rdigest [-x directory] algorithm [file ...]

DESCRIPTION

The rdigest utility calculates message digests of files, directories, or, if no file is specified, standard input. The -x option can be used as many times as required to indicate directories not to be included in a directory’s hash. This allows you to skip, eg, CVS subdirectories in a given tree, which can have relatively volatile contents not pertinent to the hash.

The list of possible algorithms is:
md5 the md5(3) algorithm will be used.
rmd160
  the rmd160(3) algorithm will be used.
sha1 the sha1(3) algorithm will be used.
sha256
  the sha256 algorithm will be used.
sha384
  the sha384 algorithm will be used.
sha512
  the sha512 algorithm will be used.
tiger the tiger algorithm will be used.
whirlpool
  the whirlpool algorithm will be used.

The rdigest utility is a simple wrapper for the various different algorithm implementations, which are located in the standard C library, and was designed to be scalable as new message digest algorithms are developed. The checksum for a directory is implemented as the hash over a list of one or two hashes for each of the items in the tree.

  • For a file, the string "f " along with the path make up the data for one hash, and the contents of the file is used for the second hash.
  • For a symbolic link, the string "l " along with the path to the symbolic link make up the data for one hash, and the target of the symbolic link is used for the second hash.
  • For a directory, the string "d " along with the path make up the data for one hash. There is no second hash for a directory.

The rdigest utility exits 0 on success, and Gt]0 if an error occurs.

SEE ALSO

cksum(1), digest(1), md5(3), rmd160(3), sha1(3)

HISTORY

The rdigest utility first appeared in
.Nx 2.0 .

AUTHORS

The digest(1) utility was written by Alistair G. Crooks Lt]agc@netbsd.orgGt]. rdigest was implemented by Andrew Brown Lt]atatat@netbsd.orgGt] as a patch to digest(1) to add recursive capabilities.
Search for    or go to Top of page |  Section 1 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.