Options (3)
-t, --tersebooleanDisplay properties about a specific file, only showing the raw result data without labels
Example:
stat {{[-t|--terse]}} {{path/to/file}}-f, --file-systembooleanDisplay information about the filesystem where a specific file is located
Example:
stat {{[-f|--file-system]}} {{path/to/file}}-c, --formatbooleanShow only octal file permissions
Example:
stat {{[-c|--format]}} "%a %n" {{path/to/file}}Examples (6)
Display properties about a specific file such as size, permissions, creation date, and access date among others
stat path/to/fileDisplay properties about a specific file, only showing the raw result data without labels
stat [-t|--terse] path/to/fileDisplay information about the filesystem where a specific file is located
stat [-f|--file-system] path/to/fileShow only octal file permissions
stat [-c|--format] "%a %n" path/to/fileShow the owner and group of a specific file
stat [-c|--format] "%U %G" path/to/fileShow the size of a specific file in bytes
stat [-c|--format] "%s %n" path/to/filemade by @shridhargupta | data from tldr-pages