Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stat

v(uutils coreutils) 0.1.0

Options

--dereference, -L

stat-help-dereference

--file-system, -f

stat-help-file-system

--terse, -t

stat-help-terse

--format=<FORMAT>, -c <FORMAT>

stat-help-format

--printf=<FORMAT>

stat-help-printf

Examples

Display properties about a specific file such as size, permissions, creation and access dates among others:

stat {{path/to/file}}

Display properties about a specific file such as size, permissions, creation and access dates among others without labels:

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

Display information about the filesystem where a specific file is located:

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

Show only octal file permissions:

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

Show the owner and group of a specific file:

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

Show the size of a specific file in bytes:

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

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.