1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 20:55:34 +02:00

stat: add Chinese translation

This commit is contained in:
wizarot 2019-03-15 11:45:10 +08:00 committed by Owen Voke
parent 795900053f
commit e604fb8f18

23
pages.zh/osx/stat.md Normal file
View file

@ -0,0 +1,23 @@
# stat
> 显示文件状态.
- 显示文件属性,如大小、权限、创建和访问日期等:
`stat {{文件}}`
- 与上面相同,但更详细(更类似于Linux的 `stat`):
`stat -x {{文件}}`
- 只显示文件权限:
`stat -f %Mp%Lp {{文件}}`
- 显示文件的所有者和所属组:
`stat -f "%Su %Sg" {{文件}}`
- 以字节为单位显示文件的大小:
`stat -f "%z %N" {{文件}}`