Differences between revisions 3 and 4
Revision 3 as of 2021-02-05 11:08:25
Size: 322
Editor: zbjxb
Comment:
Revision 4 as of 2021-02-05 11:08:32
Size: 318
Editor: zbjxb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Line 6: Line 5:

1. 递归查找(find 命令 是递归遍历文件夹的):: :: 命令:find . -name “*.txt” //当前路径下递归查找以.txt结尾的文件夹

2. 不递归查找 :: :: find . -name “*.txt” -maxdepth 1 //当前路径下不递归查找以.txt结尾的文件夹,-maxdepth 1表示查找深度为1

linux/find (last edited 2021-02-05 11:10:59 by zbjxb)