{
    "content": [
        {
            "type": "text",
            "text": "# sha1sum(1) (man)\n\n## TLDR\n\n> Calculate SHA1 cryptographic checksums.\n\n- Calculate the SHA1 checksum for one or more files:\n  `sha1sum {{path/to/file1 path/to/file2 ...}}`\n- Calculate and save the list of SHA1 checksums to a file:\n  `sha1sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.sha1}}`\n- Calculate a SHA1 checksum from `stdin`:\n  `{{command}} | sha1sum`\n- Read a file of SHA1 checksums and filenames and verify all files have matching checksums:\n  `sha1sum {{-c|--check}} {{path/to/file.sha1}}`\n- Only show a message for missing files or when verification fails:\n  `sha1sum {{-c|--check}} --quiet {{path/to/file.sha1}}`\n- Only show a message when verification fails, ignoring missing files:\n  `sha1sum --ignore-missing {{-c|--check}} --quiet {{path/to/file.sha1}}`\n- Check a known SHA1 checksum of a file:\n  `echo {{known_sha1_checksum_of_the_file}} {{path/to/file}} | sha1sum {{-c|--check}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** sha1sum - compute and check SHA1 message digest\n\n**Synopsis:** sha1sum [OPTION]... [FILE]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -b | --binary | — | read in binary mode |\n| -c | --check | — | read SHA1 sums from the FILEs and check them --tag create a BSD-style checksum |\n| -t | --text | — | read in text mode (default) |\n| -z | --zero | — | end each output line with NUL, not newline, and disable file name escaping |\n| — | --ignore-missing | — | don't fail or report status for missing files |\n| — | --quiet | — | don't print OK for each successfully verified file |\n| — | --status | — | don't output anything, status code shows success |\n| — | --strict | — | exit non-zero for improperly formatted checksum lines |\n| -w | --warn | — | warn about improperly formatted checksum lines --help display this help and exit |\n| — | --version | — | output version information and exit The sums are computed as described in FIPS-180-1. When checking, the input should be |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (4 lines) — 11 subsections\n  - -b --binary (2 lines)\n  - -c --check (4 lines)\n  - -t --text (2 lines)\n  - -z --zero (2 lines)\n  - The following five options are useful only when verifying ch (1 lines)\n  - --ignore-missing (2 lines)\n  - --quiet (2 lines)\n  - --status (2 lines)\n  - --strict (2 lines)\n  - -w --warn (4 lines)\n  - --version (9 lines)\n- **BUGS** (4 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nsha1sum - compute and check SHA1 message digest\n\n### SYNOPSIS\n\nsha1sum [OPTION]... [FILE]...\n\n### DESCRIPTION\n\nPrint or check SHA1 (160-bit) checksums.\n\nWith no FILE, or when FILE is -, read standard input.\n\n#### -b --binary\n\nread in binary mode\n\n#### -c --check\n\nread SHA1 sums from the FILEs and check them\n\n--tag  create a BSD-style checksum\n\n#### -t --text\n\nread in text mode (default)\n\n#### -z --zero\n\nend each output line with NUL, not newline, and disable file name escaping\n\n#### The following five options are useful only when verifying checksums:\n\n#### --ignore-missing\n\ndon't fail or report status for missing files\n\n#### --quiet\n\ndon't print OK for each successfully verified file\n\n#### --status\n\ndon't output anything, status code shows success\n\n#### --strict\n\nexit non-zero for improperly formatted checksum lines\n\n#### -w --warn\n\nwarn about improperly formatted checksum lines\n\n--help display this help and exit\n\n#### --version\n\noutput 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\n### BUGS\n\nDo 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\n### AUTHOR\n\nWritten by Ulrich Drepper, Scott Miller, and David Madore.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright © 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\n### SEE ALSO\n\nFull 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)\n\n"
        }
    ],
    "structuredContent": {
        "command": "sha1sum",
        "section": "1",
        "mode": "man",
        "summary": "sha1sum - compute and check SHA1 message digest",
        "synopsis": "sha1sum [OPTION]... [FILE]...",
        "tldr_summary": "Calculate SHA1 cryptographic checksums.",
        "tldr_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}}"
            }
        ],
        "tldr_source": "official",
        "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": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-b --binary",
                        "lines": 2,
                        "flag": "-b",
                        "long": "--binary"
                    },
                    {
                        "name": "-c --check",
                        "lines": 4,
                        "flag": "-c",
                        "long": "--check"
                    },
                    {
                        "name": "-t --text",
                        "lines": 2,
                        "flag": "-t",
                        "long": "--text"
                    },
                    {
                        "name": "-z --zero",
                        "lines": 2,
                        "flag": "-z",
                        "long": "--zero"
                    },
                    {
                        "name": "The following five options are useful only when verifying checksums:",
                        "lines": 1
                    },
                    {
                        "name": "--ignore-missing",
                        "lines": 2,
                        "long": "--ignore-missing"
                    },
                    {
                        "name": "--quiet",
                        "lines": 2,
                        "long": "--quiet"
                    },
                    {
                        "name": "--status",
                        "lines": 2,
                        "long": "--status"
                    },
                    {
                        "name": "--strict",
                        "lines": 2,
                        "long": "--strict"
                    },
                    {
                        "name": "-w --warn",
                        "lines": 4,
                        "flag": "-w",
                        "long": "--warn"
                    },
                    {
                        "name": "--version",
                        "lines": 9,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}