{
    "mode": "man",
    "parameter": "sha1sum",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/sha1sum/1/json",
    "generated": "2026-06-03T00:21:14Z",
    "synopsis": "sha1sum [OPTION]... [FILE]...",
    "sections": {
        "NAME": {
            "content": "sha1sum - compute and check SHA1 message digest\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sha1sum [OPTION]... [FILE]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print or check SHA1 (160-bit) checksums.\n\nWith no FILE, or when FILE is -, read standard input.\n",
            "subsections": [
                {
                    "name": "-b --binary",
                    "content": "read in binary mode\n",
                    "flag": "-b",
                    "long": "--binary"
                },
                {
                    "name": "-c --check",
                    "content": "read SHA1 sums from the FILEs and check them\n\n--tag  create a BSD-style checksum\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-t --text",
                    "content": "read in text mode (default)\n",
                    "flag": "-t",
                    "long": "--text"
                },
                {
                    "name": "-z --zero",
                    "content": "end each output line with NUL, not newline, and disable file name escaping\n",
                    "flag": "-z",
                    "long": "--zero"
                },
                {
                    "name": "The following five options are useful only when verifying checksums:",
                    "content": ""
                },
                {
                    "name": "--ignore-missing",
                    "content": "don't fail or report status for missing files\n",
                    "long": "--ignore-missing"
                },
                {
                    "name": "--quiet",
                    "content": "don't print OK for each successfully verified file\n",
                    "long": "--quiet"
                },
                {
                    "name": "--status",
                    "content": "don't output anything, status code shows success\n",
                    "long": "--status"
                },
                {
                    "name": "--strict",
                    "content": "exit non-zero for improperly formatted checksum lines\n",
                    "long": "--strict"
                },
                {
                    "name": "-w --warn",
                    "content": "warn about improperly formatted checksum lines\n\n--help display this help and exit\n",
                    "flag": "-w",
                    "long": "--warn"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n\nThe  sums are computed as described in FIPS-180-1.  When checking, the input should be a for‐\nmer output of this program.  The default mode is to print a line with checksum,  a  space,  a\ncharacter  indicating  input mode ('*' for binary, ' ' for text or where binary is insignifi‐\ncant), and name for each FILE.\n\nNote: There is no difference between binary mode and text mode on GNU systems.\n",
                    "long": "--version"
                }
            ]
        },
        "BUGS": {
            "content": "Do not use the SHA-1 algorithm for security related purposes.  Instead, use  an  SHA-2  algo‐\nrithm, implemented in the programs sha224sum(1), sha256sum(1), sha384sum(1), sha512sum(1), or\nthe BLAKE2 algorithm, implemented in b2sum(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Written by Ulrich Drepper, Scott Miller, and David Madore.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Full documentation <https://www.gnu.org/software/coreutils/sha1sum>\nor available locally via: info '(coreutils) sha1sum invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                  SHA1SUM(1)",
            "subsections": []
        }
    },
    "summary": "sha1sum - compute and check SHA1 message digest",
    "flags": [
        {
            "flag": "-b",
            "long": "--binary",
            "arg": null,
            "description": "read in binary mode"
        },
        {
            "flag": "-c",
            "long": "--check",
            "arg": null,
            "description": "read SHA1 sums from the FILEs and check them --tag create a BSD-style checksum"
        },
        {
            "flag": "-t",
            "long": "--text",
            "arg": null,
            "description": "read in text mode (default)"
        },
        {
            "flag": "-z",
            "long": "--zero",
            "arg": null,
            "description": "end each output line with NUL, not newline, and disable file name escaping"
        },
        {
            "flag": "",
            "long": "--ignore-missing",
            "arg": null,
            "description": "don't fail or report status for missing files"
        },
        {
            "flag": "",
            "long": "--quiet",
            "arg": null,
            "description": "don't print OK for each successfully verified file"
        },
        {
            "flag": "",
            "long": "--status",
            "arg": null,
            "description": "don't output anything, status code shows success"
        },
        {
            "flag": "",
            "long": "--strict",
            "arg": null,
            "description": "exit non-zero for improperly formatted checksum lines"
        },
        {
            "flag": "-w",
            "long": "--warn",
            "arg": null,
            "description": "warn about improperly formatted checksum lines --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit The sums are computed as described in FIPS-180-1. When checking, the input should be a for‐ mer output of this program. The default mode is to print a line with checksum, a space, a character indicating input mode ('*' for binary, ' ' for text or where binary is insignifi‐ cant), and name for each FILE. Note: There is no difference between binary mode and text mode on GNU systems."
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Calculate SHA1 cryptographic checksums.",
        "examples": [
            {
                "description": "Calculate the SHA1 checksum for one or more files",
                "command": "sha1sum {{path/to/file1 path/to/file2 ...}}"
            },
            {
                "description": "Calculate and save the list of SHA1 checksums to a file",
                "command": "sha1sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha1}}"
            },
            {
                "description": "Calculate a SHA1 checksum from `stdin`",
                "command": "{{command}} | sha1sum"
            },
            {
                "description": "Read a file of SHA1 checksums and filenames and verify all files have matching checksums",
                "command": "sha1sum {{-c|--check}} {{path/to/file.sha1}}"
            },
            {
                "description": "Only show a message for missing files or when verification fails",
                "command": "sha1sum {{-c|--check}} --quiet {{path/to/file.sha1}}"
            },
            {
                "description": "Only show a message when verification fails, ignoring missing files",
                "command": "sha1sum --ignore-missing {{-c|--check}} --quiet {{path/to/file.sha1}}"
            },
            {
                "description": "Check a known SHA1 checksum of a file",
                "command": "echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum {{-c|--check}}"
            }
        ]
    }
}