
* Leslie Katz <lesliek(a)ozemail.com.au> [2005-12-13 07:45]:
That was 1,415 more than earlier, though the number of filenames which had appeared with "Permission denied" the first time round was nowhere near as many as 1,415.
When find(1) fails to descend into a directory because it does not have sufficient permissions, it can’t and won’t give you errors for each of the files and directories beneath. That most likely explains this difference.
I then typed, as user, "sudo", followed by the command I'd typed twice before. That time, I got the number 154,722.
This difference is small; about 100 files between the two complete totals. It’s probably caused by /proc, /sys and/or other pseudofilesystems, as Oliver said. Btw, I suggest something along the lines of find / \! -type d -printf . | wc -c instead; it’s a smidgen more efficient and robust. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>