Changeset View
Changeset View
Standalone View
Standalone View
sbin/md5/md5.1
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.Dd May 19, 2021 | .Dd June 19, 2021 | ||||
.Dt MD5 1 | .Dt MD5 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm md5 , sha1 , sha224 , sha256 , sha384 , sha512 , sha512t256 , rmd160 , | .Nm md5 , sha1 , sha224 , sha256 , sha384 , sha512 , sha512t256 , rmd160 , | ||||
.Nm skein256 , skein512 , skein1024 , | .Nm skein256 , skein512 , skein1024 , | ||||
.Nm md5sum , sha1sum , sha224sum , sha256sum , sha384sum , sha512sum , | .Nm md5sum , sha1sum , sha224sum , sha256sum , sha384sum , sha512sum , | ||||
.Nm sha512t256sum , rmd160sum , skein256sum , skein512sum , skein1024sum | .Nm sha512t256sum , rmd160sum , skein256sum , skein512sum , skein1024sum | ||||
.Nd calculate a message-digest fingerprint (checksum) for a file | .Nd calculate a message-digest fingerprint (checksum) for a file | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl pqrtx | .Op Fl pqrtx | ||||
.Op Fl c Ar string | .Op Fl c Ar string | ||||
.Op Fl s Ar string | .Op Fl s Ar string | ||||
.Op Ar | .Op Ar | ||||
.Pp | .Pp | ||||
.Nm md5sum | |||||
.Op Fl pqrtx | |||||
.Op Fl c Ar file | |||||
.Op Fl s Ar string | |||||
.Op Ar | |||||
.Pp | |||||
(All other hashes have the same options and usage.) | (All other hashes have the same options and usage.) | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm md5 , sha1 , sha224 , sha256 , sha384 , sha512 , sha512t256 , rmd160 , | .Nm md5 , sha1 , sha224 , sha256 , sha384 , sha512 , sha512t256 , rmd160 , | ||||
.Nm skein256 , skein512 , | .Nm skein256 , skein512 , | ||||
and | and | ||||
.Nm skein1024 | .Nm skein1024 | ||||
utilities take as input a message of arbitrary length and produce as | utilities take as input a message of arbitrary length and produce as | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
The hexadecimal checksum of each file listed on the command line is printed | The hexadecimal checksum of each file listed on the command line is printed | ||||
after the options are processed. | after the options are processed. | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Fl b | .It Fl b | ||||
Ignored for compatibility with the coreutils | Ignored for compatibility with the coreutils | ||||
.Nm -sum | .Nm -sum | ||||
programs. | programs. | ||||
.It Fl c Ar string | .It Fl c Ar string | ||||
Compare the digest of the file against this string. | If the program was called with a name that does not end in "sum", | ||||
compare the digest of the file against this string. | |||||
.Pq Note that this option is not yet useful if multiple files are specified. | .Pq Note that this option is not yet useful if multiple files are specified. | ||||
This option causes an error in for the | .It Fl c Ar file | ||||
.Nm -sum | If the program was called with a name that does end in "sum", the file passed | ||||
programs because it check the checksums listed in a file for the coreutils | as argument must contain digest lines generated by the same digest algorithm | ||||
.Nm -sum | with or without the | ||||
programs that is not yet implemented. | .Fl r | ||||
option. | |||||
.It Fl s Ar string | .It Fl s Ar string | ||||
Print a checksum of the given | Print a checksum of the given | ||||
.Ar string . | .Ar string . | ||||
.It Fl p | .It Fl p | ||||
Echo stdin to stdout and append the checksum to stdout. | Echo stdin to stdout and append the checksum to stdout. | ||||
.It Fl q | .It Fl q | ||||
Quiet mode \(em only the checksum is printed out. | Quiet mode \(em only the checksum is printed out. | ||||
Overrides the | Overrides the | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |