STAT(1)
๐ stat(1) โ the girlies' guide to peeking at files ๐
okay so bestie, welcome to stat, the User Commands icon of the GNU coreutils world. this is the manual page for stat(1), and by the end of it you're gonna be reading file metadata like it's your notes app. let's GO โจ
๐ธ NAME ๐ธ
stat โ display file or file system status
like, literally just โจtell me everything about this fileโจ energy.
๐ SYNOPSIS ๐
stat [OPTION]... FILE...
so it's giving: options, then one or more files. simple. iconic. no notes. ๐
๐ฆ DESCRIPTION ๐ฆ
Display file or file system status. that's the whole job, and she does it flawlessly. ๐
Mandatory arguments to long options are mandatory for short options too. (yes bestie, that's the rule, no skipping it.)
-L,--dereferenceโ follow links. like, actually go through the door instead of just describing the door ๐ช-f,--file-systemโ display file system status instead of file status. the whole filesystem, not just one lil file ๐๏ธ--cached=MODEโ specify how to use cached attributes; useful on remote file systems. See MODE below ๐-c,--format=FORMATโ use the specified FORMAT instead of the default; output a newline after each use of FORMAT. your custom lil template moment ๐จ--printf=FORMATโ like--format, but interpret backslash escapes, and do not output a mandatory trailing newline; if you want a newline, include\nin FORMAT. (yes she's the wilder sister of--format, no cap) ๐-t,--terseโ print the information in terse form. short. snappy. main character with no time to waste โก--helpโ display this help and exit. your bestie when you're lost ๐ซถ--versionโ output version information and exit. who is she? exactly. ๐
๐ MODE, explained ๐
The MODE argument of --cached can be: always, never, or default.
alwayswill use cached attributes if availableneverwill try to synchronize with the latest attributesdefaultwill leave it up to the underlying file system
so basically you're picking how much your girl trusts her memory vs. going to check the receipts in real time. ๐
โจ Valid format sequences for files (without --file-system) โจ
this is the part where you build your own output and honestly? highkey obsessed.
%aโ permission bits in octal (see'#'and'0'printf flags)%Aโ permission bits and file type in human readable form%bโ number of blocks allocated (see%B)%Bโ the size in bytes of each block reported by%b%Cโ SELinux security context string%dโ device number in decimal (st_dev)%Dโ device number in hex (st_dev)%Hdโ major device number in decimal%Ldโ minor device number in decimal%fโ raw mode in hex%Fโ file type%gโ group ID of owner%Gโ group name of owner%hโ number of hard links%iโ inode number%mโ mount point%nโ file name%Qnโ quoted file name%Nโ quoted file name with dereference if symbolic link%oโ optimal I/O transfer size hint%sโ total size, in bytes%rโ device type in decimal (st_rdev)%Rโ device type in hex (st_rdev)%Hrโ major device type in decimal, for character/block device special files%Lrโ minor device type in decimal, for character/block device special files%tโ major device type in hex, for character/block device special files%Tโ minor device type in hex, for character/block device special files%uโ user ID of owner%Uโ user name of owner%wโ time of file birth, human-readable;-if unknown%Wโ time of file birth, seconds since Epoch;0if unknown%xโ time of last access, human-readable%Xโ time of last access, seconds since Epoch%yโ time of last data modification, human-readable%Yโ time of last data modification, seconds since Epoch%zโ time of last status change, human-readable%Zโ time of last status change, seconds since Epoch
๐ Valid format sequences for file systems ๐
now the filesystem edition, she's a whole different girlie:
%aโ free blocks available to non-superuser%bโ total data blocks in file system%cโ total file nodes in file system%dโ free file nodes in file system%fโ free blocks in file system%iโ file system ID in hex%lโ maximum length of filenames%nโ file name%Qnโ quoted file name%sโ block size (for faster transfers)%Sโ fundamental block size (for block counts)%tโ file system type in hex%Tโ file system type in human readable form
๐ the --terse cheat codes ๐
--terse is equivalent to the following FORMAT:
%Qn %s %b %f %u %g %D %i %h %t %T %X %Y %Z %W %o
--terse --file-system is equivalent to the following FORMAT:
%Qn %i %l %t %s %S %b %f %a %c %d
so if you ever wondered what -t is secretly doing behind the scenes... there it is. no secrets between us bestie. ๐
๐ง one lil heads up ๐ง
Your shell may have its own version of stat, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports.
like, don't come for this manpage if your shell's stat is doing something different, okay? she warned you ๐
๐ AUTHOR ๐
Written by Michael Meskes. (we stan a legend ๐ซถ)
๐ REPORTING BUGS ๐
- Report bugs to:
<bug-coreutils@gnu.org>. - Report any translation bugs to:
<https://translationproject.org/team/>. - GNU coreutils home page:
<https://www.gnu.org/software/coreutils/> - General help using GNU software:
<https://www.gnu.org/gethelp/>
found a bug? tell the girlies, they'll fix it fr fr.
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
so like, yes you can remix it, no you cannot sue if it breaks. balance. โ๏ธโจ
๐ SEE ALSO ๐
Full documentation <https://www.gnu.org/software/coreutils/stat> or available locally via: info '(coreutils) stat invocation'
okay bestie that's the whole page, you're officially a stat girlie now ๐
๐ธ
this was GNU coreutils 9.12, dated September 2026 โ slay, ate, no crumbs, periodt. ๐๐ฆ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms