Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat: add page #1518

Merged
merged 6 commits into from
Oct 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stat: update osx variant
- Fix a minor grammar error
- Removed the file permissions example and only kept the file owner and group.
  • Loading branch information
agnivade authored Oct 16, 2017
commit 0833e8e8d9ec552b2aa1dd94653957002049ba5e
10 changes: 5 additions & 5 deletions pages/osx/stat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`