Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
- Display properties about a specific file such as size, permissions, creation and access dates among others without labels:
`stat --terse {{path/to/file}}`
`stat {{[-t|--terse]}} {{path/to/file}}`
- Display information about the filesystem where a specific file is located:
`stat --file-system {{path/to/file}}`
`stat {{[-f|--file-system]}} {{path/to/file}}`
- Show only octal file permissions:
`stat --format="%a %n" {{path/to/file}}`
`stat {{[-c|--format]}} "%a %n" {{path/to/file}}`
- Show the owner and group of a specific file:
`stat --format="%U %G" {{path/to/file}}`
`stat {{[-c|--format]}} "%U %G" {{path/to/file}}`
- Show the size of a specific file in bytes:
`stat --format="%s %n" {{path/to/file}}`
`stat {{[-c|--format]}} "%s %n" {{path/to/file}}`