{
    "content": [
        {
            "type": "text",
            "text": "# SUM (man)\n\n## NAME\n\nsum - checksum and count the blocks in a file\n\n## SYNOPSIS\n\nsum [OPTION]... [FILE]...\n\n## DESCRIPTION\n\nPrint checksum and block counts for each FILE.\n\n## TLDR\n\n> Compute checksums and the number of blocks for a file.\n\n- Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:\n  `sum {{path/to/file}}`\n- Compute a checksum with System V-compatible algorithm and 512-byte blocks:\n  `sum {{-s|--sysv}} {{path/to/file}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (3 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "SUM",
        "section": "",
        "mode": "man",
        "summary": "sum - checksum and count the blocks in a file",
        "synopsis": "sum [OPTION]... [FILE]...",
        "tldr_summary": "Compute checksums and the number of blocks for a file.",
        "tldr_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}}"
            }
        ],
        "tldr_source": "official",
        "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": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-r",
                        "lines": 1,
                        "flag": "-r"
                    },
                    {
                        "name": "-s --sysv",
                        "lines": 4,
                        "flag": "-s",
                        "long": "--sysv"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}