Let's say I'd like to find something specific on a filesystem, but to omit certain directories in the search.
Rather than type locate string
, I'd like to type locate string[omit anything which resides in specified directory]
.
So, for example, let's say I want to omit /usr/share
from the listing.
How is this accomplished?