mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
ls: add Chinese translation (#8360)
This commit is contained in:
parent
518a2fe777
commit
bba7a6c7da
36
pages.zh/common/ls.md
Normal file
36
pages.zh/common/ls.md
Normal file
@ -0,0 +1,36 @@
|
||||
# ls
|
||||
|
||||
> 列出目录中的内容。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/ls>.
|
||||
|
||||
- 列出目录中的文件,每个文件占一行:
|
||||
|
||||
`ls -1`
|
||||
|
||||
- 列出包含隐藏文件的所有文件:
|
||||
|
||||
`ls -a`
|
||||
|
||||
- 列出所有文件,如果是目录,则在目录名后面加上「/」:
|
||||
|
||||
`ls -F`
|
||||
|
||||
- 列出包含隐藏文件的所有文件信息,包括权限,所有者,大小和修改日期:
|
||||
|
||||
`ls -la`
|
||||
|
||||
- 列出所有文件信息,大小用人类可读的单位表示(KiB, MiB, GiB):
|
||||
|
||||
`ls -lh`
|
||||
|
||||
- 列出所有文件信息,按大小降序排序:
|
||||
|
||||
`ls -lS`
|
||||
|
||||
- 列出所有文件信息,按修改日期从旧到新排序:
|
||||
|
||||
`ls -ltr`
|
||||
|
||||
- 只列出目录:
|
||||
|
||||
`ls -d */`
|
Loading…
Reference in New Issue
Block a user