Operating System - Tru64 Unix
1830340 Members
2253 Online
110001 Solutions
New Discussion

find sees files but 'ls' does not

 
dom kris
Frequent Advisor

find sees files but 'ls' does not

Hi,

I was looking for file with specific i-node on a V5.1A system and I ran the "find /etc -i 3115" cmd.
This cmd listed the files I was looking for but also gave some errors:
"
find: /etc/dfsl.h00 : Invalid argument
find: /etc/dfsl.bak : Invalid argument
find: /etc/vol-old/vold_diag/socket : Invalid argument
find: /etc/vol-old/vold_request/socket : Invalid argument
find: /etc/dfsl.h01 : Invalid argument
/etc/dfsc.h01
find: /etc/dfsl.h02 : Invalid argument
find: /etc/dfsl.h03 : Invalid argument
find: /etc/dfsl.h04 : Bad file number
"
When I did a "ls -la /etc/dfsl.h00" I got the following error:
ls: /etc/dfsl.h00 not found

How can this be explained? Apparently the find cmd sees some files that aren't there?

Kris
1 REPLY 1
Ralf Puchner
Honored Contributor

Re: find sees files but 'ls' does not

some of them are not regular file. They are sockets not supporting all operations of a normal file - so returning the errormessage.

the dfsl file may be temporarly in use leading to "not found" etc due to changed inode during operation of your command.
Help() { FirstReadManual(urgently); Go_to_it;; }