linux 中find命令忽略大小写进行查找

 

001、

[root@pc1 test]# ls
a.txt  A.TXT  b.txt  B.TXT
[root@pc1 test]# find ./ -name "a.txt"      ## 查找a.txt
./a.txt
[root@pc1 test]# ls
a.txt  A.TXT  b.txt  B.TXT
[root@pc1 test]# find ./ -iname "a.txt"     ## 忽略大小写查找a.txt
./a.txt
./A.TXT

 

posted @ 2022-10-28 16:32  小鲨鱼2018  阅读(222)  评论(0编辑  收藏  举报