[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Specialized disk directory tools



On Sat, Sep 13, 2025 at 02:48:28AM -0500, Richard Owlett wrote:

> Apparently "find" only crawls the current directory and sub-directories.

No. It crawls each directory you pass it in its arglist:

  find . /usr/local /var/lib

would look in the current dir (.), /usr/local and /var/lib

> Makes it very nice for for my case. I'm only interested in files under
> /home/richard . It would be almost perfect if it would ignore hidden files
> and directories ;/

Whatever you mean by "hidden files and directories". If you mean those
whose name begins with a dot, excluding those is what you want.

Typically, you'd do it with find by short-circuiting the pattern.
Roughly:

  find ... -name ".*" -o ...

Cheers
-- 
tomás

Attachment: signature.asc
Description: PGP signature


Reply to: