stat Command Examples

Display file and filesystem information. More information: https://www.gnu.org/software/coreutils/manual/html_node/stat-invocation.html.

stat {{path/to/file}}

stat {{[-t|--terse]}} {{path/to/file}}

stat {{[-f|--file-system]}} {{path/to/file}}

stat {{[-c|--format]}} "%a %n" {{path/to/file}}

stat {{[-c|--format]}} "%U %G" {{path/to/file}}

stat {{[-c|--format]}} "%s %n" {{path/to/file}}