The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

stat - Display File Attributes





The stat command is a convenient way to display various attributes of a file, such as permissions, link count, size, owner, group, UID/GID, access time, modification time, change time, file type, and more.

The basic syntax of the stat command is:
stat [OPTIONS] [FILE] .

Some common options for the stat command include:

Examples:
$ stat /tmp ←Display various attributes of the directory '/tmp'
$ stat -c %s file ←Display the modification time of a file

For more examples and usage, please refer to the provided link.