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:
$ 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.