在solaris上查找返回意外输出的命令

时间:2015-11-04 15:46:08

标签: linux search find solaris

我目前遇到了find命令的问题,我不确定发生了什么。 我在OpenSolaris11 [Nexenta存储设备]上运行它。

如果我使用:

find /volumes/stor01/home/home/user  -name "*.abc" -exec ls -al {} \;

find /volumes/stor01/home/ -name "*.abc" -exec ls -al {} \;

我得到了预期的回报[我已经在用户家庭区域中嵌入了一个文件。 / home位置总计约3TB

然而,这是它开始变得奇怪的地方。如果我进入另一个目录,到/ volumes / stor01 / [约12TB],我开始看到错误,并且没有显示预期的文件,但是我输入下面列出的任何相应文件夹一切正常:

find /volumes/stor01 -name "*.abc" -exec ls -al {} \;
find: /volumes/stor01/storage/.zfs/shares: No such file or directory
find: /volumes/stor01/storage/rsync_27thMay10am: No such file or directory
find: /volumes/stor01/storage/.$EXTEND: No such file or directory
find: /volumes/stor01/storage/storage: No such file or directory
find: /volumes/stor01/VM_Backups: No such file or directory
find: /volumes/stor01/.mapping.0: No such file or directory
find: /volumes/stor01/scratch: No such file or directory
find: /volumes/stor01/VMWareStore: No such file or directory
find: /volumes/stor01/notes: No such file or directory
find: /volumes/stor01/.mapping.2: No such file or directory
find: /volumes/stor01/development: No such file or directory
find: /volumes/stor01/source: No such file or directory
find: /volumes/stor01/nim1: No such file or directory
find: /volumes/stor01/office: No such file or directory
find: /volumes/stor01/applications: No such file or directory
find: /volumes/stor01/.mapping.1: No such file or directory
find: /volumes/stor01/.$EXTEND: No such file or directory

1 个答案:

答案 0 :(得分:1)

原来我已经启用了快照文件夹的可见性,并且特殊的字符集看起来像是让它们发现了。再次隐藏这一切,一切正常。