stat(1) -- Linux man page



stat - display file or filesystem status  


stat [OPTION] FILE...  


Display file or filesystem status.

-f, --filesystem
display filesystem status instead of file status
-c --format=FORMAT
use the specified FORMAT instead of the default
-L, --dereference
follow links
-t, --terse
print the information in terse form
-Z, --context
print security context information for SELinux if available.
display this help and exit
output version information and exit

The valid format sequences for files (without --filesystem):

Access rights in human readable form
Access rights in octal
The size in bytes of each block reported by `%b'
Number of blocks allocated (see %B)
SELinux security context
Device number in hex
Device number in decimal
File type
Raw mode in hex
Group name of owner
Group ID of owner
Number of hard links
Inode number
Quoted File name with dereference if symbolic link
File name
IO block size
Total size, in bytes
Minor device type in hex
Major device type in hex
User name of owner
User ID of owner
Time of last access as seconds since Epoch
Time of last access
Time of last modification as seconds since Epoch
Time of last modification
Time of last change as seconds since Epoch
Time of last change

Valid format sequences for file systems:

Free blocks available to non-superuser
Total data blocks in file system
Total file nodes in file system
Free file nodes in file system
Free blocks in file system
File System id in hex
Maximum length of filenames
File name
Optimal transfer block size
Type in human readable form
Type in hex


Written by Michael Meskes.  


Report bugs to <>.  


Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  


The full documentation for stat is maintained as a Texinfo manual. If the info and stat programs are properly installed at your site, the command
info coreutils stat

should give you access to the complete manual.