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" {{文件}}`