Is there a way to perform a find command on my whole computer, excluding external hard drives? I've been using the find command to search for junk left over from uninstalled software, like (from the top of the directory):
sudo find -iname . "*badexample*"
I'm confident there's nothing I'm looking for on my external drive. I suppose I could simply disconnect it before doing the find, but I'm curious how I might specify such an exclusion with bash. I'm also a little confused about where the external drive is located in the directory as well; /Volumes contains an alias that points to the drive, but it looks (using Get Info in Finder) like it points to itself.