{
    "mode": "man",
    "parameter": "CKSUM",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/CKSUM/json",
    "generated": "2026-10-22T12:38:38Z",
    "synopsis": "cksum [OPTION]... [FILE]...",
    "sections": {
        "NAME": {
            "content": "cksum - compute and verify file checksums\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cksum [OPTION]... [FILE]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print or verify checksums.  By default use the 32 bit CRC algorithm.\n\nWith no FILE, or when FILE is -, read standard input.\n\nMandatory arguments to long options are mandatory for short options too.\n",
            "subsections": [
                {
                    "name": "-a --algorithm",
                    "content": "select the digest type to use.  See DIGEST below.\n",
                    "flag": "-a",
                    "long": "--algorithm"
                },
                {
                    "name": "--base64",
                    "content": "emit base64-encoded digests, not hexadecimal\n",
                    "long": "--base64"
                },
                {
                    "name": "-c --check",
                    "content": "read checksums from the FILEs and check them\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-l --length",
                    "content": "digest  length in bits; must not exceed the max for the blake2 algorithm and must be a\nmultiple of 8\n\n--raw  emit a raw binary digest, not hexadecimal\n\n--tag  create a BSD-style checksum (the default)\n",
                    "flag": "-l",
                    "long": "--length"
                },
                {
                    "name": "--untagged",
                    "content": "create a reversed style checksum, without digest type\n",
                    "long": "--untagged"
                },
                {
                    "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",
                    "flag": "-w",
                    "long": "--warn"
                },
                {
                    "name": "--debug",
                    "content": "indicate which implementation used\n\n--help display this help and exit\n",
                    "long": "--debug"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                },
                {
                    "name": "DIGEST determines the digest algorithm and default output format:",
                    "content": "sysv   (equivalent to sum -s)\n\nbsd    (equivalent to sum -r)\n\ncrc    (equivalent to cksum)\n\nmd5    (equivalent to md5sum)\n\nsha1   (equivalent to sha1sum)\n\nsha224 (equivalent to sha224sum)\n\nsha256 (equivalent to sha256sum)\n\nsha384 (equivalent to sha384sum)\n\nsha512 (equivalent to sha512sum)\n\nblake2b\n(equivalent to b2sum)\n\nsm3    (only available through cksum)\n\nWhen checking, the input should be a former output of this program, or equivalent  standalone\nprogram.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Padraig Brady and Q. Frank Xia.\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  ©  2023 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/cksum>\nor available locally via: info '(coreutils) cksum invocation'\n\nGNU coreutils 9.4                           January 2026                                    CKSUM(1)",
            "subsections": []
        }
    },
    "summary": "cksum - compute and verify file checksums",
    "flags": [
        {
            "flag": "-a",
            "long": "--algorithm",
            "arg": null,
            "description": "select the digest type to use. See DIGEST below."
        },
        {
            "flag": "",
            "long": "--base64",
            "arg": null,
            "description": "emit base64-encoded digests, not hexadecimal"
        },
        {
            "flag": "-c",
            "long": "--check",
            "arg": null,
            "description": "read checksums from the FILEs and check them"
        },
        {
            "flag": "-l",
            "long": "--length",
            "arg": null,
            "description": "digest length in bits; must not exceed the max for the blake2 algorithm and must be a multiple of 8 --raw emit a raw binary digest, not hexadecimal --tag create a BSD-style checksum (the default)"
        },
        {
            "flag": "",
            "long": "--untagged",
            "arg": null,
            "description": "create a reversed style checksum, without digest type"
        },
        {
            "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"
        },
        {
            "flag": "",
            "long": "--debug",
            "arg": null,
            "description": "indicate which implementation used --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Calculate CRC checksums and byte counts of a file.",
        "examples": [
            {
                "description": "Display a 32-bit checksum, size in bytes and filename",
                "command": "cksum {{path/to/file}}"
            }
        ]
    }
}