14.3 stat
: Report file or filesystem status
stat
displays information about the specified file(s). Synopsis:
| stat [option]... [file]...
|
With no option, stat
reports all information about the given files.
But it also can be used to report the information of the filesystems the
given files are located on. If the files are links, stat
can
also give information about the files the links point to.
- `-f'
- `--filesystem'
-
Report information about the filesystems where the given files are located
instead of information about the files themselves.
- `-L'
- `--dereference'
-
Change how
stat
treats symbolic links.
With this option, stat
acts on the file referenced
by each symbolic link argument.
Without it, stat
acts on any symbolic link argument directly.
- `-t'
- `--terse'
-
Print the information in terse form, suitable for parsing by other programs.
- `-c'
- `--format'
-
Allow user to specify the output format.
Interpreted sequences for file stat are:
- %n - File name
- %N - Quoted File name with dereference if symbolic link
- %d - Device number in decimal
- %D - Device number in hex
- %i - Inode number
- %a - Access rights in octal
- %A - Access rights in human readable form
- %f - raw mode in hex
- %F - File type
- %h - Number of hard links
- %u - User Id of owner
- %U - User name of owner
- %g - Group Id of owner
- %G - Group name of owner
- %t - Major device type in hex
- %T - Minor device type in hex
- %s - Total size, in bytes
- %b - Number of blocks allocated
- %o - IO block size
- %x - Time of last access
- %X - Time of last access as seconds since Epoch
- %y - Time of last modification
- %Y - Time of last modification as seconds since Epoch
- %z - Time of last change
- %Z - Time of last change as seconds since Epoch
Interpreted sequences for filesystem stat are:
- %n - File name
- %i - File System id in hex
- %l - Maximum length of filenames
- %t - Type in hex
- %T - Type in human readable form
- %b - Total data blocks in file system
- %f - Free blocks in file system
- %a - Free blocks available to non-superuser
- %s - Optimal transfer block size
- %c - Total file nodes in file system
This document was generated
by Jeff Bailey on December, 28 2002
using texi2html