[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In status mode, genfile
prints file system status for
each file specified in the command line. This mode is toggled by
‘--stat’ (‘-S’) command line option. An optional argument to this
option specifies output format: a comma-separated list of
struct stat
fields to be displayed. This list can contain
following identifiers:
The file name.
Device number in decimal.
Inode number.
File mode in octal. Optional number specifies octal mask to
be applied to the mode before outputting. For example, --stat
mode.777
will preserve lower nine bits of it. Notice, that you can
use any punctuation character in place of ‘.’.
Number of hard links.
User ID of owner.
Group ID of owner.
File size in decimal.
The size in bytes of each file block.
Number of blocks allocated.
Time of last access.
Time of last modification
Time of last status change
A boolean value indicating whether the file is ‘sparse’.
Modification times are displayed in UTC as
UNIX timestamps, unless suffixed with ‘H’ (for
“human-readable”), as in ‘ctimeH’, in which case usual
tar tv
output format is used.
The default output format is: ‘name,dev,ino,mode, nlink,uid,gid,size,blksize,blocks,atime,mtime,ctime’.
For example, the following command will display file names and corresponding times of last access for each file in the current working directory:
genfile --stat=name,atime *
By default, genfile
follows symbolic links and returns
information about files pointed to by them. To get information about
the symlink files themselves, use the ‘--no-dereference’
(‘-h’) option.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on August 23, 2023 using texi2html 5.0.