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:
parent
795900053f
commit
e604fb8f18
1 changed files with 23 additions and 0 deletions
23
pages.zh/osx/stat.md
Normal file
23
pages.zh/osx/stat.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# stat
|
||||||
|
|
||||||
|
> 显示文件状态.
|
||||||
|
|
||||||
|
- 显示文件属性,如大小、权限、创建和访问日期等:
|
||||||
|
|
||||||
|
`stat {{文件}}`
|
||||||
|
|
||||||
|
- 与上面相同,但更详细(更类似于Linux的 `stat`):
|
||||||
|
|
||||||
|
`stat -x {{文件}}`
|
||||||
|
|
||||||
|
- 只显示文件权限:
|
||||||
|
|
||||||
|
`stat -f %Mp%Lp {{文件}}`
|
||||||
|
|
||||||
|
- 显示文件的所有者和所属组:
|
||||||
|
|
||||||
|
`stat -f "%Su %Sg" {{文件}}`
|
||||||
|
|
||||||
|
- 以字节为单位显示文件的大小:
|
||||||
|
|
||||||
|
`stat -f "%z %N" {{文件}}`
|
Loading…
Add table
Reference in a new issue