Intermediate
Package: coreutils
stat
Display detailed file or filesystem status.
Syntax
stat [options] file
Description
stat prints detailed metadata about a file — size, permissions, owner, inode number and precise access/modify/change timestamps — going well beyond what ls -l shows.
Examples
stat file.txt
Show detailed metadata for a file
stat -c "%a %n" file.txt
Print just the permission bits and filename, custom formatted
stat -f /var
Show filesystem-level statistics for the mount containing a path