Print out the contents of an inode as they appear to the stat system call in a human-readable format. The error messages "Can't stat file" and "Can't lstat file" usually mean the file doesn't exist. "Can't readlink file" generally indicates that something is wrong with a symbolic link.
Display the output as specified by format.
Display information about the filesystem where the file is located, not about the file itself.
Display help information and exit.
Follow links and display information about the files found.
Print the output tersely, in a form suitable for parsing by other programs.
Print version information and exit.
stat and stat-L display the following:
Number of hard links
Owner's user ID and name, if available
Owner's group ID and name, if available
Device type for inode device
Total size, in bytes
Number of blocks allocated
I/O block size
Last access time
Last modification time
Last change time
Security context for SELinux
If -f is specified, stat displays the following information about the filesystem:
Filesystem block size
Total blocks in the filesystem
Number of free blocks
Number of free blocks for nonroot users
Total number of inodes
Number of free inodes
Maximum filename length
The printf(3) flag characters #, 0, -, +, and space can be used in format. In addition, the field width and precision options can be used.
If -cformat is specified, the following sequences can be used for format:
Access rights in octal.
Access rights in human-readable form.
Number of blocks allocated.
Size in bytes of each block reported by %b.
Device number in decimal.
Device number in hex.
Raw mode in hex.
Owner's group ID.
Owner's group name.
Number of hard links.
Quoted filename. If file is a symbolic link, include path to original.
I/O block size.
Total size, in bytes.
Major device type in hex.
Minor device type in hex.
Owner's user ID.
Last access time.
Last access time as seconds since the Epoch.
Last modification time (modification of the file contents).
Last modification time as seconds since the Epoch.
Time of last change (modification of the inode).
Time of last change as seconds since the Epoch.
If both -cformat and -f are specified, the following sequences can be used for format: