stat(1M) stat(1M)
stat - display stat attributes of named files
stat [ -Lidrlspkugjcamtq ] [ -f fdesc ] name ...
For each argument name, stat(2) that name and display the results. By
default, display all the stat(2) attributes. If specific attributes are
requested, just display those requested.
The options are:
-L Use lstat(2) instead.
-q Quiet; just print numeric value of displayed attributes, without
syntactic sugar, for easier use in shell scripts.
-i Show inode number (st_ino).
-d Show device (st_dev).
-r Show raw device (st_rdev).
-l Show link count (st_nlink).
-s Show size (st_size).
-p Show permissions (st_mode).
-k Show kind; describe upper bits of st_mode.
-u Show user id (st_uid).
-g Show group id (st_gid).
-j Show project id (st_projid).
-c Show last status change time (st_ctime).
-a Show last access time (st_atime).
-m Show last modification time (st_mtime).
-t Show all three times.
-f fdesc
Stat the file descriptor fdesc instead of names.
Page 1
stat(1M) stat(1M)
SEE ALSO
lstat(2), stat(2).
stat returns exit code of 0 if stat(2) was successful on all the
specified names. Otherwise, it returns the number of names for which
stat(2) failed, or 255, whichever is less.
PPPPaaaaggggeeee 2222 [ Back ]
|