'chown' and hidden directories

Brad De Vries devriesbj
Thu Feb 17 14:47:01 PST 2005


I don't think there's any option to chown that causes it to traverse
hidden directories but you could try specifying them on the command
line with a wildcard:
  chown -R michael: * .[A-z0-9]*

Brad.


On Thu, 17 Feb 2005 13:23:10 -0600, Michael Hipp <Michael at hipp.com> 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?
> 
> Thanks,
> Michael
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
> 
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>


More information about the Linux-users mailing list