|
stat — display file or file system status
stat
[OPTION
...] FILE
...
Display file or file system status.
Mandatory arguments to long options are mandatory for short options too.
−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
mount point
file name
quoted file name with dereference if symbolic link
optimal I/O transfer size hint
total size, in bytes
major device type in hex
minor device type in hex
user ID of owner
user name of owner
time of file birth, human−readable; − if unknown
time of file birth, seconds since Epoch; 0 if unknown
time of last access, human−readable
time of last access, seconds since Epoch
time of last modification, human−readable
time of last modification, seconds since Epoch
time of last change, human−readable
time of last change, 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
file system ID in hex
maximum length of filenames
file name
block size (for faster transfers)
fundamental block size (for block counts)
file system type in hex
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. |
Report stat bugs to bug−coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report stat translation bugs to <http://translationproject.org/team/>
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 invocation'
should give you access to the complete manual.
COPYRIGHT |
---|
Copyright © 2013 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. |