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

pull/1/head
Irina 2022-10-26 11:21:47 +03:00 committed by GitHub
parent 6d985bc5ae
commit bfaee1a34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -5,24 +5,24 @@
- 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:
`stat -t {{file}}`
`stat -t {{path/to/file}}`
- Show filesystem information:
`stat -f {{file}}`
`stat -f {{path/to/file}}`
- Show only octal file permissions:
`stat -c "%a %n" {{file}}`
`stat -c "%a %n" {{path/to/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:
`stat -c "%s %n" {{file}}`
`stat -c "%s %n" {{path/to/file}}`