Next: Exec Mode, Previous: Generate Mode, Up: Genfile
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 :
--stat
mode.777
will preserve lower nine bits of it. Notice, that you can
use any punctuation caracter in place of ‘.’.
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 *