搜索位于 2 个不同主目录中的 .txt 文件时,根据当前工作目录,仅显示一个。为什么是这样?
/home/bob/1.txt
/home/alice/dir1/2.txt
pwd /tmp
[root@host tmp]#find /home -name *.txt
/home/bob/1.txt
/home/alice/dir1/2.txt
pwd /home
[root@host bob]#find /home -name *.txt
/home/bob/1.txt
为什么从 bob 目录中搜索只返回一个文件?