Posts

Showing posts from May, 2013

Stat Utility

The stat utility allows you to see all information about either a file or a directory.  You can use wildcards if you want to see info for more than one object at a time. stat process.sh File: `process.sh' Size: 158           Blocks: 16         IO Block: 4096   regular file Device: 305h/773d    Inode: 98134       Links: 1 Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root) Access: 2010-08-18 11:16:37.000000000 -0600 Modify: 2010-08-16 09:44:57.000000000 -0600 Change: 2010-08-16 09:44:57.000000000 -0600 Most of this should be self-explanatory, but a few items bear explaining. * Blocks–Each file occupies a certain number of filesystem blocks on the hard drive.  Here, we see that this file occupies eight blocks. * IO Block–This i...