'chown' and hidden directories

Michael Hipp Michael
Thu Feb 17 14:43:38 PST 2005


Net Llama! wrote:
> 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: .*

I tried that. It does bad things as it also does '.' and '..'.

Thanks,
Michael


More information about the Linux-users mailing list