STAT(1)
πΈ STAT(1) β the file-status glow-up πΈ
okay bestie, so this is stat from the General Commands Manual (section 1, the "commands you actually type" section, iykyk) and it's literally the tool that tells you everything about a file or a whole file system. like the receipts. the whole vibe check of a file. let's go π
β¨ NAME β¨
stat β Display file or file system status. that's it, that's the whole name. iconic brevity π
π¦ SYNOPSIS π¦
stat [OPTION]... FILE...
so you give it some options (zero or more, we love optionality), and then one or more files. multiple files? absolutely valid. it'll do the thing for each one, no cap π«Ά
π DESCRIPTION π
Display file or file system status. literally what it says on the tin β you point it at a file, it spills all the tea: size, permissions, timestamps, inode, all of it. and with the right flag it does the same for a whole mounted file system. main character energy β
π OPTIONS π
-L,--dereferenceβ follow links π¦ like, if the file is a symlink, don't tell me about the link, tell me about the thing it points at. follow it. go get it.-f,--file-systemβ display file system status instead of file status β¨ we're looking at the whole filesystem now, not just one little file. big picture behavior.-t,--terseβ print the information in terse form π short and snappy, no frills, just the facts.-c,--format <FORMAT>β use the specified FORMAT instead of the default; output a newline after each use of FORMAT π (yes, you get a newline for free each time. built-in.)--printf <FORMAT>β like--format, but interpret backslash escapes, and do not output a mandatory trailing newline; if you want a newline, include\nin FORMAT π«Ά so like. it's--format's feral cousin. escapes work, but the newline is your responsibility. you want a newline? put\nin there yourself. periodt.-h,--helpβ Print help π the "bestie explain" button.-V,--versionβ Print version πΈ the "which one am I even running" button.<files>β the actual file(s) you're asking about. the whole point. the moment. π
π₯ EXTRA π₯
β Valid format sequences for files (without --file-system)
these go in your -c / --printf FORMAT string, bestie. every single one slays differently:
%aβ access rights in octal (note'#'and'0'printf flags) π%Aβ access rights 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%Dβ device number in hex%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%Nβ quoted file name with dereference (follow) if symbolic link π¦%oβ optimal I/O transfer size hint%sβ total size, in bytes%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
heads up β these are different from the file ones, and some letters repeat with totally different meanings (looking at you %a, %d, %f, %n π). read carefully:
%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%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
β οΈ NOTE: your shell may have its own version ofstat, 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 me if your shell'sstatacts different β check its docs first, bestie π
π VERSION π
this whole thing is v(uutils coreutils) 0.12.0 β put some respect on it π
and that's the page! dated 2026-09-17, from the General Commands Manual, page STAT(1) β go forth and stat everything, you absolute icon πβ¨ππ¦πΈ
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms