STAT(1)                                                   STAT(1)


stat - display file or filesystem status


stat [-l] [-f] [-v] [-t] file-name [file-name]...


This command displays information about the specified file(s). You do not need any access rights to the file to get this information but you need search rights to all directories named in the path leading to the file. stat stats the file pointed to by file-name stat -l is identical to stat, only that for links informa­ tion about the files that are obtained by tracing the links is displayed. stat -f does not stat the file itself but instead stats the filesystem where file-name is located. stat -v prints version information. stat -t prints the information in terse form, suitable for parsing by other programs DISPLAY stat and stat -l both display the following information: Device number Inode number Access rights Number of hard links User ID (and name if available) of owner Group ID (and name if available) of owner Device type (if inode device) Total size, in bytes Number of blocks allocated IO block size Time of last access Time of last modification Time of last change If -f is specified the following information is displayed: Filesystem type Block size of the filesystem Total blocks in the filesystem Free blocks Free blocks for non-root user(s) Total inodes Free inodes Maximum length of filenames BUGS None known so far.


Written by Michael Meskes <>, -f added from statfs by Radovan Garabik <gara­>


stat(2), statfs(2) Linux 28 August 1997 STAT(1)