1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

stat: update osx variant

- Fix a minor grammar error
- Removed the file permissions example and only kept the file owner and group.
This commit is contained in:
Agniva De Sarker 2017-10-16 11:37:39 +05:30 committed by GitHub
parent 6dd84e41fe
commit 0833e8e8d9

View file

@ -6,18 +6,18 @@
`stat {{file}}`
- Same as a but verbose (more similar to linux's `stat`:
- Same as above but verbose (more similar to linux's `stat`):
`stat -x {{file}}`
- Use stat to show only octal file permissions:
- Show only octal file permissions:
`stat -f %Mp%Lp {{file}}`
- Show octal file permissions, name and group of the file owner:
- Show owner and group of the file:
`stat -f "%Mp%Lp %N %Su %Sg" {{file}}`
`stat -f "%Su %Sg" {{file}}`
- Show the size in bytes of the file:
- Show the size of the file in bytes:
`stat -f "%z %N" {{file}}`