{
    "mode": "perldoc",
    "parameter": "stat",
    "section": "-f",
    "url": "https://www.chedong.com/phpMan.php/perldoc/stat/json",
    "generated": "2026-06-03T03:32:18Z",
    "sections": [],
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Display file and filesystem information.",
        "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}}"
            }
        ]
    }
}