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
Next Next commit
stat: add page
  • Loading branch information
juan88 committed Oct 5, 2017
commit ab8b7e3460bd506bd1b6e74fd1f065f153bc680a
27 changes: 27 additions & 0 deletions pages/common/stat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# stat

> Display file and filesystem information.

- Show file properties such as size, permissions, creation and access dates among others:

`stat {{file}}`

- Same as a above but in a more concise way:

`stat -t {{file}}`

- Display filesystem information:

`stat -f {{file}}`

- Use stat to show only octal file permissions:

`stat -c "%a %n" {{file}}`

- Show octal file permissions, name and group of the file owner:

`stat -c "%a %n %U %G" {{file}}`

- Show the size in bytes of the file:

`stat -c "%s %n" {{file}}`