Skip to content

Commit 49bb4c3

Browse files
committed
ls命令添加例子
1 parent 64b6599 commit 49bb4c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

command/ls.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ls
22
===
3-
3+
44
显示目录内容列表
55

66
## 补充说明
@@ -46,11 +46,11 @@ ls(选项)(参数)
4646

4747
### 实例
4848

49-
显示当前目录下非影藏文件与目录
50-
51-
```
52-
[root@localhost ~]# ls
53-
anaconda-ks.cfg install.log install.log.syslog satools
49+
```bash
50+
$ ls # 仅列出当前目录可见文件
51+
$ ls -l # 列出当前目录可见文件详细信息
52+
$ ls -hl # 列出详细信息并以可读大小显示文件大小
53+
$ ls -al # 列出所有文件(包括隐藏)的详细信息
5454
```
5555

5656
显示当前目录下包括影藏文件在内的所有文件列表

0 commit comments

Comments
 (0)