tar: Status Mode
1
1 F.2 Status Mode
1 ===============
1
1 In status mode, 'genfile' prints file system status for each file
1 specified in the command line. This mode is toggled by '--stat' ('-S')
1 command line option. An optional argument to this option specifies
1 output "format": a comma-separated list of 'struct stat' fields to be
1 displayed. This list can contain following identifiers:
1
1 name
1 The file name.
1
1 dev
1 st_dev
1 Device number in decimal.
1
1 ino
1 st_ino
1 Inode number.
1
1 mode[.NUMBER]
1 st_mode[.NUMBER]
1
1 File mode in octal. Optional NUMBER specifies octal mask to be
1 applied to the mode before outputting. For example, '--stat
1 mode.777' will preserve lower nine bits of it. Notice, that you
1 can use any punctuation character in place of '.'.
1
1 nlink
1 st_nlink
1 Number of hard links.
1
1 uid
1 st_uid
1 User ID of owner.
1
1 gid
1 st_gid
1 Group ID of owner.
1
1 size
1 st_size
1 File size in decimal.
1
1 blksize
1 st_blksize
1 The size in bytes of each file block.
1
1 blocks
1 st_blocks
1 Number of blocks allocated.
1
1 atime
1 st_atime
1 Time of last access.
1
1 mtime
1 st_mtime
1 Time of last modification
1
1 ctime
1 st_ctime
1 Time of last status change
1
1 sparse
1 A boolean value indicating whether the file is 'sparse'.
1
1 Modification times are displayed in UTC as UNIX timestamps, unless
1 suffixed with 'H' (for "human-readable"), as in 'ctimeH', in which case
1 usual 'tar tv' output format is used.
1
1 The default output format is: 'name,dev,ino,mode,
1 nlink,uid,gid,size,blksize,blocks,atime,mtime,ctime'.
1
1 For example, the following command will display file names and
1 corresponding times of last access for each file in the current working
1 directory:
1
1 genfile --stat=name,atime *
1