{
    "content": [
        {
            "type": "text",
            "text": "# stat (pydoc)\n\n## TLDR\n\n> Display file and filesystem information.\n\n- Display properties about a specific file such as size, permissions, creation date, and access date among others:\n  `stat {{path/to/file}}`\n- Display properties about a specific file, only showing the raw result data without labels:\n  `stat {{-t|--terse}} {{path/to/file}}`\n- Display information about the filesystem where a specific file is located:\n  `stat {{-f|--file-system}} {{path/to/file}}`\n- Show only octal file permissions:\n  `stat {{-c|--format}} \"%a %n\" {{path/to/file}}`\n- Show the owner and group of a specific file:\n  `stat {{-c|--format}} \"%U %G\" {{path/to/file}}`\n- Show the size of a specific file in bytes:\n  `stat {{-c|--format}} \"%s %n\" {{path/to/file}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** stat - Constants/functions for interpreting results of os.stat() and os.lstat().\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **DESCRIPTION** (2 lines)\n- **FUNCTIONS** (56 lines) — 1 subsections\n  - filemode (2 lines)\n- **DATA** (69 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nstat - Constants/functions for interpreting results of os.stat() and os.lstat().\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/stat.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### DESCRIPTION\n\nSuggested usage: from stat import *\n\n### FUNCTIONS\n\nSIFMT(...)\nReturn the portion of the file's mode that describes the file type.\n\nSIMODE(...)\nReturn the portion of the file's mode that can be set by os.chmod().\n\nSISBLK(...)\nSISBLK(mode) -> bool\n\nReturn True if mode is from a block special device file.\n\nSISCHR(...)\nSISCHR(mode) -> bool\n\nReturn True if mode is from a character special device file.\n\nSISDIR(...)\nSISDIR(mode) -> bool\n\nReturn True if mode is from a directory.\n\nSISDOOR(...)\nSISDOOR(mode) -> bool\n\nReturn True if mode is from a door.\n\nSISFIFO(...)\nSISFIFO(mode) -> bool\n\nReturn True if mode is from a FIFO (named pipe).\n\nSISLNK(...)\nSISLNK(mode) -> bool\n\nReturn True if mode is from a symbolic link.\n\nSISPORT(...)\nSISPORT(mode) -> bool\n\nReturn True if mode is from an event port.\n\nSISREG(...)\nSISREG(mode) -> bool\n\nReturn True if mode is from a regular file.\n\nSISSOCK(...)\nSISSOCK(mode) -> bool\n\nReturn True if mode is from a socket.\n\nSISWHT(...)\nSISWHT(mode) -> bool\n\nReturn True if mode is from a whiteout.\n\n#### filemode\n\nConvert a file's mode to a string of the form '-rwxrwxrwx'\n\n### DATA\n\nFILEATTRIBUTEARCHIVE = 32\nFILEATTRIBUTECOMPRESSED = 2048\nFILEATTRIBUTEDEVICE = 64\nFILEATTRIBUTEDIRECTORY = 16\nFILEATTRIBUTEENCRYPTED = 16384\nFILEATTRIBUTEHIDDEN = 2\nFILEATTRIBUTEINTEGRITYSTREAM = 32768\nFILEATTRIBUTENORMAL = 128\nFILEATTRIBUTENOTCONTENTINDEXED = 8192\nFILEATTRIBUTENOSCRUBDATA = 131072\nFILEATTRIBUTEOFFLINE = 4096\nFILEATTRIBUTEREADONLY = 1\nFILEATTRIBUTEREPARSEPOINT = 1024\nFILEATTRIBUTESPARSEFILE = 512\nFILEATTRIBUTESYSTEM = 4\nFILEATTRIBUTETEMPORARY = 256\nFILEATTRIBUTEVIRTUAL = 65536\nSFAPPEND = 262144\nSFARCHIVED = 65536\nSFIMMUTABLE = 131072\nSFNOUNLINK = 1048576\nSFSNAPSHOT = 2097152\nSTATIME = 7\nSTCTIME = 9\nSTDEV = 2\nSTGID = 5\nSTINO = 1\nSTMODE = 0\nSTMTIME = 8\nSTNLINK = 3\nSTSIZE = 6\nSTUID = 4\nSENFMT = 1024\nSIEXEC = 64\nSIFBLK = 24576\nSIFCHR = 8192\nSIFDIR = 16384\nSIFDOOR = 0\nSIFIFO = 4096\nSIFLNK = 40960\nSIFPORT = 0\nSIFREG = 32768\nSIFSOCK = 49152\nSIFWHT = 0\nSIREAD = 256\nSIRGRP = 32\nSIROTH = 4\nSIRUSR = 256\nSIRWXG = 56\nSIRWXO = 7\nSIRWXU = 448\nSISGID = 1024\nSISUID = 2048\nSISVTX = 512\nSIWGRP = 16\nSIWOTH = 2\nSIWRITE = 128\nSIWUSR = 128\nSIXGRP = 8\nSIXOTH = 1\nSIXUSR = 64\nUFAPPEND = 4\nUFCOMPRESSED = 32\nUFHIDDEN = 32768\nUFIMMUTABLE = 2\nUFNODUMP = 1\nUFNOUNLINK = 16\nUFOPAQUE = 8\n\n### FILE\n\n/usr/lib/python3.10/stat.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "stat",
        "section": "",
        "mode": "pydoc",
        "summary": "stat - Constants/functions for interpreting results of os.stat() and os.lstat().",
        "synopsis": null,
        "tldr_summary": "Display file and filesystem information.",
        "tldr_examples": [
            {
                "description": "Display properties about a specific file such as size, permissions, creation date, and access date among others",
                "command": "stat {{path/to/file}}"
            },
            {
                "description": "Display properties about a specific file, only showing the raw result data without labels",
                "command": "stat {{-t|--terse}} {{path/to/file}}"
            },
            {
                "description": "Display information about the filesystem where a specific file is located",
                "command": "stat {{-f|--file-system}} {{path/to/file}}"
            },
            {
                "description": "Show only octal file permissions",
                "command": "stat {{-c|--format}} \"%a %n\" {{path/to/file}}"
            },
            {
                "description": "Show the owner and group of a specific file",
                "command": "stat {{-c|--format}} \"%U %G\" {{path/to/file}}"
            },
            {
                "description": "Show the size of a specific file in bytes",
                "command": "stat {{-c|--format}} \"%s %n\" {{path/to/file}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 56,
                "subsections": [
                    {
                        "name": "filemode",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 69,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}