Latest web development tutorials

Linux stat command

Linux command Daquan Linux command Daquan

Linux stat command displays inode contents.

stat in text format to display the contents of the inode.

grammar

stat [文件或目录]

Examples

View testfile file inode content content, you can use the following command:

# Stat testfile

Execute the above command output:

# stat testfile                #输入命令
  File: `testfile'
  Size: 102             Blocks: 8          IO Block: 4096   regular file
Device: 807h/2055d      Inode: 1265161     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-08-13 14:07:20.000000000 +0800
Modify: 2014-08-13 14:07:07.000000000 +0800
Change: 2014-08-13 14:07:07.000000000 +0800

Linux command Daquan Linux command Daquan