Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Next: , Previous: Generate Mode, Up: Genfile


C.2 Status Mode

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 :

name
The file name.
dev
st_dev
Device number in decimal.
ino
st_ino
Inode number.
mode
st_mode
File mode in octal.
nlink
st_nlink
Number of hard links.
uid
st_uid
User ID of owner.
gid
st_gid
Group ID of owner.
size
st_size
File size in decimal.
blksize
st_blksize
The size in bytes of each file block.
blocks
st_blocks
Number of blocks allocated.
atime
st_atime
Time of last access.
mtime
st_mtime
Time of last modification
ctime
st_ctime
Time of last status change

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 *

 
 
  Published under the terms of the GNU General Public License Design by Interspire