stat: change to full path in token (#9346)

This commit is contained in:
Irina
2022-10-26 11:21:47 +03:00
committed by GitHub
parent 6d985bc5ae
commit bfaee1a34b

View File

@@ -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}}`