Easy Tutorial
❮ Linux Comm Traceroute Linux Shell Process Control ❯

Linux stat Command

Linux Command Manual

The Linux stat command is used to display inode content.

stat displays the inode content in a textual format.

Syntax

stat [file or directory]

Example

To view the inode content of the file testfile, you can use the following command:

stat testfile

Executing the above command outputs:

# stat testfile                # Input command
  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 Manual

❮ Linux Comm Traceroute Linux Shell Process Control ❯