mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 11:55:53 +02:00
stat: change to full path in token (#9346)
This commit is contained in:
parent
6d985bc5ae
commit
bfaee1a34b
1 changed files with 6 additions and 6 deletions
|
@ -5,24 +5,24 @@
|
||||||
|
|
||||||
- Show file properties such as size, permissions, creation and access dates among others:
|
- Show file properties such as size, permissions, creation and access dates among others:
|
||||||
|
|
||||||
`stat {{file}}`
|
`stat {{path/to/file}}`
|
||||||
|
|
||||||
- Same as above but in a more concise way:
|
- Same as above but in a more concise way:
|
||||||
|
|
||||||
`stat -t {{file}}`
|
`stat -t {{path/to/file}}`
|
||||||
|
|
||||||
- Show filesystem information:
|
- Show filesystem information:
|
||||||
|
|
||||||
`stat -f {{file}}`
|
`stat -f {{path/to/file}}`
|
||||||
|
|
||||||
- Show only octal file permissions:
|
- Show only octal file permissions:
|
||||||
|
|
||||||
`stat -c "%a %n" {{file}}`
|
`stat -c "%a %n" {{path/to/file}}`
|
||||||
|
|
||||||
- Show owner and group of the file:
|
- Show owner and group of the file:
|
||||||
|
|
||||||
`stat -c "%U %G" {{file}}`
|
`stat -c "%U %G" {{path/to/file}}`
|
||||||
|
|
||||||
- Show the size of the file in bytes:
|
- Show the size of the file in bytes:
|
||||||
|
|
||||||
`stat -c "%s %n" {{file}}`
|
`stat -c "%s %n" {{path/to/file}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue