On Saturday 16 February 2008, Dale wrote: > Neil Bothwick wrote: > > On Sat, 16 Feb 2008 08:22:19 -0800, Brian Marshall wrote: > >>> I have a lot of dir. and files in my home directory. I want to > >>> chown all of it to my user. How to do this by one comand ? > >>> Thanks > >> > >> With recursion: > >> chown -R user:group * > > > > That won't cover hidden files, try > > > > chown -R user: ~user > > Neil, > > What does the "~" make it do different? Got me curious about that.
Change user only for those files that have a different one. Avoids unnecessary writes. Uwe -- Informal Linux Group Namibia: http://www.linux.org.na/ SysEx (Pty) Ltd.: http://www.SysEx.com.na/ -- gentoo-user@lists.gentoo.org mailing list