Sometime you want to know about the informations of the file on you GNU/Linux machine, with stat command you will get information about the files. Please take a look the sample.
fatur@majoris:~> stat IBM\ SOP.odt
File: `IBM SOP.odt'
Size: 529948 Blocks: 1040 IO Block: 4096 regular file
Device: 801h/2049d Inode: 25691512 Links: 1
Access: (0744/-rwxr--r--) Uid: ( 2001/ fatur) Gid: ( 100/ users)
Access: 2011-10-21 19:58:52.762000001 +0700
Modify: 2011-10-21 19:58:52.722000002 +0700
Change: 2011-10-21 19:58:52.722000002 +0700
Birth: -
fatur@majoris:~>
So, without options you can have the following information:
File : Size in Bytes
Blocks : Number of blocks used
IO Block : Size in bytes of every block.
Device : The identifier number of your storage device (hard-drive, pen drive, etc.)
Inode : The inode number that the file or directory is linked to.
Access/Modify and change Times : Note that the timestamps also include which time zone that accesses or modifications took place in, in this example +0700 (Indonesia Time)
No comments:
Post a Comment