Skip to content

Commit b784513

Browse files
committed
2016-02-29补充bash
1 parent b932429 commit b784513

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Bash.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
- `ls -F`,列出当前目录下的文件名及其类型。以 **/** 结尾表示为目录名,以 **\*** 结尾表示为可执行文件,以 **@** 结尾表示为符号连接
7878
- `ls -lg`,同上,并显示出文件的所有者工作组名。
7979
- `ls -lh`,查看文件夹类文件详细信息,文件大小,文件修改时间
80+
- `ls /opt | head -5`,显示 opt 目录下前5条记录
8081
- `ls -l /opt |grep "^-"|wc -l`,统计 opt 目录下文件的个数,不会递归统计
8182
- `ls -lR /opt |grep "^-"|wc -l`,统计 opt 目录下文件的个数,会递归统计
8283
- `ls -l /opt |grep "^d"|wc -l`,统计 opt 目录下目录的个数,不会递归统计

0 commit comments

Comments
 (0)