- Show file properties such as size, permissions, creation and access dates among others:stat [file]- Same as above but in a more concise way:stat -t [file]- Show filesystem information:stat -f [file]- Show only octal file permissions:stat -c "%a %n" [file]- Show owner and group of the file:stat -c "%U %G" [file]- Show the size of the file in bytes:stat -c "%s %n" [file]
stat [,OPTION/]... ,FILE/...
Display file or file system status.
Mandatory arguments to long options are mandatory for short options too.
The valid format sequences for files (without --file-system):
Valid format sequences for file systems:
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.
Written by Michael Meskes.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report stat translation bugs to <http://translationproject.org/team/>
Copyright © 2016 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.
Full documentation at: <http://www.gnu.org/software/coreutils/stat> or available locally via: info '(coreutils) stat invocation'