stat — display file or file system status
stat
[OPTION
] FILE
...
Display file or file system status.
−L
, −−dereference
follow links
−f
, −−file−system
display file system status instead of file status
−c
−−format
=FORMAT
use the specified FORMAT instead of the default; 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 \n in
FORMAT.
−t
, −−terse
print the information in terse form
−−help
display this help and exit
−−version
output version information and exit
The valid format sequences for files (without −−file−system
):
Access rights in octal
Access rights in human readable form
Number of blocks allocated (see %B)
The size in bytes of each block reported by %b
SELinux security context string
Device number in decimal
Device number in hex
Raw mode in hex
File type
Group ID of owner
Group name of owner
Number of hard links
Inode number
File name
Quoted file name with dereference if symbolic link
I/O block size
Total size, in bytes
Major device type in hex
Minor device type in hex
User ID of owner
User name of owner
Time of last access
Time of last access as seconds since Epoch
Time of last modification
Time of last modification as seconds since Epoch
Time of last change
Time of last change as seconds since Epoch
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
SELinux security context string
File System ID in hex
Maximum length of filenames
File name
Block size (for faster transfers)
Fundamental block size (for block counts)
Type in hex
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. |
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 stat
should give you access to the complete manual.
COPYRIGHT |
---|
Copyright © 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://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. |