On Sun, Jan 14, 2024 at 05:00:09PM -0500, gene heskett wrote: > On 1/14/24 11:10, Arno Lehmann wrote: > > Gene, > > > > Am 14.01.2024 um 16:56 schrieb gene heskett: > > > On 1/14/24 04:58, David Christensen wrote: > > > > find . -xdev -iname '*filter*' > > > gene@coyote:/etc$ sudo find . -xdev -iname '*filter*' > > > > why sudo, and why in /etc ? > /etc only because I was there and sudo to get around a whole passel of no > permissons. > I thought find was global. Its not? My mistake then.
The arguments after find which don't begin with "-" are the starting point(s). In this case, your command asks find to start in "." which is the current directory. If you were to run something like find /tmp /var -iname '*.log' then it would look for pathnames ending with .log (case-insensitive) starting in /tmp and /var.