STAT(1)
π STAT(1) π β or, "bestie, let me tell you everything about this file" β¨
okay so you know how sometimes you just need to know everything about a file? like its whole lore? that's this. it's stat, from the General Commands Manual, and it's giving main character energy fr fr π«Ά
πΈ NAME πΈ
stat β Display file or file system status. π
β¨ SYNOPSIS β¨
stat [OPTION]... FILE...
π¦ DESCRIPTION π¦
Display file or file system status. that's it, that's the whole vibe. she shows you the receipts on your files AND your file systems. no cap. π
π OPTIONS π
-L,--dereferenceβ follow links π (yes, literally, she goes down the rabbit hole instead of just pointing at the door)-f,--file-systemβ display file system status instead of file status. so instead of the file's tea, you get the whole filesystem's tea π΅-t,--terseβ print the information in terse form. short queen. minimal words, maximum data βοΈ-c,--format <FORMAT>β use the specified FORMAT instead of the default; and heads up bestie, output a newline after each use of FORMAT π--printf <FORMAT>β like--format, but interpret backslash escapes, and do not output a mandatory trailing newline; if you want a newline, include\nin FORMAT. she's β¨unhingedβ¨ like that, you gotta ask for your own newline π-h,--helpβ Print help πββοΈ-V,--versionβ Print version π<files>β the files. the little guys. your blorbos π
π EXTRA π
valid format sequences for files (without --file-system) ποΈ
%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 πΎ
%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 of stat, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. (translation: your shell might be doing its own thing and not telling you. check her docs. π)
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
Display properties about a specific file such as size, permissions, creation date, and access date among others:
stat path/to/file
Display properties about a specific file, only showing the raw result data without labels:
stat [-t|--terse] path/to/file
Display information about the filesystem where a specific file is located:
stat [-f|--file-system] path/to/file
Show only octal file permissions:
stat [-c|--format] "%a %n" path/to/file
Show the owner and group of a specific file:
stat [-c|--format] "%U %G" path/to/file
Show the size of a specific file in bytes:
stat [-c|--format] "%s %n" path/to/file
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π (no shade, she's still growing, be nice to her)
and that's the whole page bestie!! this drop is from uutils coreutils, version 0.12.0, dated 2026-09-25 β go forth and stat everything, you icon, you absolute legend ππβ
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms