大神帮我指点一下, 加了exec后,本来find能找到的./japan/abc, 在加exec后找不到了,是什么情况啊?请看下面
[sean@centos Desktop]$ tree
.
├── 1
├── 2
├── abc
├── abd
├── abf
├── bbb
│ ├── 1
│ ├── 2.hard
│ ├── 2.soft -> /home/sean/Desktop/2
│ ├── abc
│ ├── abd
│ ├── cangls
│ └── huagnls
├── bbc
├── bbd
├── cangls.txt
├── cdv
├── huagnls
├── japan
│ ├── 1
│ ├── 1.txt
│ ├── abc
│ ├── abd
│ └── cangls
└── nnn
9 directories, 16 files
[sean@centos Desktop]$ find . -name abc
./japan/abc
./bbb/abc
./abc
[sean@centos Desktop]$ find . -name abc -exec ls {} \;
./bbb/abc
./abc
[sean@centos Desktop]$
[root@learning ~]# ls -R
.:
abc anaconda-ks.cfg bbb initial-setup-ks.cfg japan
./bbb:
abc
./japan:
abc
[root@learning ~]# find . -name abc
./japan/abc
./bbb/abc
./abc
[root@learning ~]# find . -name abc -exec ls {} \;
./japan/abc
./bbb/abc
./abc
我模仿你的案例测试是可以找到的建议你查看下是否有误删的可能