
14 Dec
2005
14 Dec
'05
7:21 a.m.
A. Pagaltzis wrote:
* Leslie Katz <lesliek(a)ozemail.com.au> [2005-12-14 06:15]:
I don't know how to act on Oliver's suggestion to exclude those "directories" from my command. I printed out and tried to read the entire man page for "find", but that didn't overcome my ignorance.
That would be
find / \( -path /proc -o -path /sys \) -prune -o -printf . | wc -c
The commandline for find(1) is actually an expression with boolean conditions, AND/OR operators, parentheses etc.
or find / -xdev -type f | wc -l