'chown' and hidden directories

A. Khattri ajai
Thu Feb 17 14:56:57 PST 2005


On Thu, 17 Feb 2005, Michael Hipp wrote:

> How do you get chown to do hidden directories?
>
> If I have a directory tree with a bunch of stuff in it and I want to
> change the ownership of it all I thought to do:
>
>    chown -R michael: *
>
> But this does everything except hidden ".foo" directories. Is there some
> simple construct that will cause chown to hit all files and directories
> including hidden ones?

chown -R michael .[a-z]*


--




More information about the Linux-users mailing list