manpagez: man pages & more
man filehash(1)
Home | html | info | man
filehash(1)                 General Commands Manual                filehash(1)


NAME

       filehash - print various hash digests and filesizes for the specified
       files or subsets of those files


SYNOPSIS

       filehash [-1(MD5)] [-2(SHA1)] [-3(SHA224)] [-4(SHA256)] [-5(SHA384)]
       [-6(SHA512)] [-7(BLAKE2B_256)] [-8(BLAKE2B_512)] [-B(ase64)]
       [-b(ase64url)] [-C(lassic_BSD)] [-c(lassic)] [-f file_list] [-h(elp)]
       [-n byte_count] [-o offset] [-p(ipe)] [-q(uiet)] [-s(ize)] [-v(erbose)]
       [file...]


DESCRIPTION

       filehash prints out various hashes (MD5, SHA1, SHA224, SHA256, SHA384,
       SHA512, BLAKE2B-256, and/or BLAKE2B-512) digests and (optionally)
       filesizes for the specified files.  Hashes for subsets of those files
       can also be requested.  It is called as part of the repeats script.


OPTIONS

       -1     Include the MD5 hash (128 bits) as part of the filehash output.

       -2     Include the SHA1 hash (160 bits) as part of the filehash output.

       -3     Include the SHA224 hash as part of the filehash output.

       -4     Include the SHA256 hash as part of the filehash output.

       -5     Include the SHA384 hash as part of the filehash output.

       -6     Include the SHA512 hash as part of the filehash output.

       -7     Include the BLAKE2B hash (at 256 bits) as part of the filehash
              output.

       -8     Include the BLAKE2B hash (at 512 bits) as part of the filehash
              output.

       -B     Print each filehash in unpadded "base64" encoding instead of
              hexadecimal.

       -b     Print each filehash in unpadded "base64url" encoding instead of
              hexadecimal.

       -C     Print output in "BSD-style" format, with one filehash per line.
              This overrides the -q and -v options.

       -c     Print output in the "classic" format, with one filehash per
              line.  This overrides the -C, -q, and -v options.

       -f filelist
              Read the names of files to be processed from the specified file.

       -h     Print help and quit.

       -n byte_count
              Read only the first byte_count bytes from each specified file.

       -o offset
              Seek past the first offset bytes in each specified file before
              beginning filehash computations.  Specifying an offset that is
              greater than or equal to the length of the file yields the same
              result as a zero-length file.

       -p     Read the names of files to be processed from stdin.

       -q     Quiet output.  Do not print the filename with program output.

       -s     Include the filesize as part of the filehash output.

       -v     Verbose output.  Print the filename with the program output.


NOTES

       The program defaults to quiet for a single file and verbose for
       multiple files.  The -f and -p options can be used simultaneously with
       filenames specified on the command-line.  If no hash option is
       specified, then the SHA256 hash will be used by default.


COPYRIGHT

       Main filehash program Copyright (C) 2004-2022 Brian Lindholm.

       Original MD5 routine written by Ulrich Drepper.  Copyright (C)
       1995-1997, 1999-2001, 2005-2006, 2008-2022 Free Software Foundation,
       Inc.

       Original SHA1 routines written by Scott G. Miller.  Copyright (C)
       2000-2001, 2003-2006, 2008-2022 Free Software Foundation, Inc.

       Original SHA224, SHA256, SHA384, and SHA512 routines written by David
       Madore and Scott G. Miller.  Copyright (C) 2005-2006, 2008-2022 Free
       Software Foundation, Inc.

       This program is free software; you can use it, redistribute it, and/or
       modify it under the terms of the GNU General Public License as
       published by the Free Software Foundation; either version 3, or (at
       your option) any later version.

       This program is distributed in the hope that it will be useful, but
       WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       General Public License for more details.

       Original BLAKE2B routines by Samuel Neves, 2012.  Used under the terms
       of the CC0, the OpenSSL License, and/or the Apache Public License 2.0.
       The terms of these licenses can be found at:

          - CC0 1.0 Universal :
       https://creativecommons.org/publicdomain/zero/1.0
          - OpenSSL license   : https://www.openssl.org/source/license.html
          - Apache 2.0        : https://www.apache.org/licenses/LICENSE-2.0

littleutils                       2022 Jul 15                      filehash(1)

littleutils 1.2.6 - Generated Mon Jun 26 07:57:48 CDT 2023
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.