{
    "mode": "man",
    "parameter": "sum",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/sum/1/json",
    "generated": "2026-06-15T13:10:56Z",
    "synopsis": "sum [OPTION]... [FILE]...",
    "sections": {
        "NAME": {
            "content": "sum - checksum and count the blocks in a file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sum [OPTION]... [FILE]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print checksum and block counts for each FILE.\n\nWith no FILE, or when FILE is -, read standard input.\n",
            "subsections": [
                {
                    "name": "-r",
                    "content": "",
                    "flag": "-r"
                },
                {
                    "name": "-s --sysv",
                    "content": "use System V sum algorithm, use 512 bytes blocks\n\n--help display this help and exit\n",
                    "flag": "-s",
                    "long": "--sysv"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Kayvan Aghaiepour and David MacKenzie.\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/sum>\nor available locally via: info '(coreutils) sum invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                      SUM(1)",
            "subsections": []
        }
    },
    "summary": "sum - checksum and count the blocks in a file",
    "flags": [
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-s",
            "long": "--sysv",
            "arg": null,
            "description": "use System V sum algorithm, use 512 bytes blocks --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Compute checksums and the number of blocks for a file.",
        "examples": [
            {
                "description": "Compute a checksum with BSD-compatible algorithm and 1024-byte blocks",
                "command": "sum {{path/to/file}}"
            },
            {
                "description": "Compute a checksum with System V-compatible algorithm and 512-byte blocks",
                "command": "sum {{-s|--sysv}} {{path/to/file}}"
            }
        ]
    }
}