I need to search for files that has no user OR no group.
find / -nouser -o -nogroup
I think this is OK. But, I don't want to search NFS shares. How can I exclude the NFS shares in the find command?
With GNU find, you can use the
Having said that, hymie's approach probably makes more sense: white-list what FS you want to search rather than black-listing those that you don't want to search.
If you want to only include
Don't write it:
As that while that would stop
The above correct command is short for:
The closest you will probably get is to use