stat: refresh page (#9438)

pull/1/head
Irina 2022-11-04 23:10:43 +03:00 committed by GitHub
parent 0bb3fcf749
commit 50e6c846ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -3,26 +3,26 @@
> Display file and filesystem information.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/stat-invocation.html>.
- Show file properties such as size, permissions, creation and access dates among others:
- Display properties about a specific file such as size, permissions, creation and access dates among others:
`stat {{path/to/file}}`
- Same as above but in a more concise way:
- Display properties about a specific file such as size, permissions, creation and access dates among others without labels:
`stat -t {{path/to/file}}`
`stat --terse {{path/to/file}}`
- Show filesystem information:
- Display information about the filesystem where a specific file is located:
`stat -f {{path/to/file}}`
`stat --file-system {{path/to/file}}`
- Show only octal file permissions:
`stat -c "%a %n" {{path/to/file}}`
`stat --format="%a %n" {{path/to/file}}`
- Show owner and group of the file:
- Show the owner and group of a specific file:
`stat -c "%U %G" {{path/to/file}}`
`stat --format="%U %G" {{path/to/file}}`
- Show the size of the file in bytes:
- Show the size of a specific file in bytes:
`stat -c "%s %n" {{path/to/file}}`
`stat --format="%s %n" {{path/to/file}}`