001、
[root@pc1 dir001]# ls test01 test02 ww.txt xx.map [root@pc1 dir001]# tree . ├── test01 │ ├── cc.csv │ └── kk.txt ├── test02 │ ├── dirxx │ │ └── diryy │ │ ├── rr.ped │ │ └── tt.txt │ ├── mm.txt │ └── yy.csv ├── ww.txt └── xx.map 6 directories, 6 files [root@pc1 dir001]# find ./ -maxdepth 1 -name "*.txt" ./ww.txt [root@pc1 dir001]# find ./ -mindepth 2 -name "*.txt" ./test01/kk.txt ./test02/mm.txt ./test02/dirxx/diryy/tt.txt
。
标签:mindepth,pc1,dir001,maxdepth,linux,test02,txt,root,find From: https://www.cnblogs.com/liujiaxin2018/p/17721508.html