|
|||||||||||
|
Re: [gentoo-user] [nb] How to change permission on this
From: Dale <dalek1967(at)bellsouth.net>
Date: Sun Feb 17 2008 - 02:51:28 EST
> On Sun, Feb 17, 2008 at 12:52:05AM +0000, Neil Bothwick wrote: > >> On Sat, 16 Feb 2008 10:50:37 -0600, Dale wrote: >> >> >>>>> With recursion: >>>>> chown -R user:group * >>>>> >>>> That won't cover hidden files, try >>>> >>>> chown -R user: ~user >>>> >>> What does the "~" make it do different? Got me curious about that. >>> >> Nothing in itself, it just refers to the user's home directory. The >> important point is that giving a directory matces all files in that >> directory, whereas * omits those beginning with a . in most people's >> shells. >> > > * also omits the home directory itself. It probably wouldn't matter > in this case, but if you copied a user's home directory from one > machine to another where the uid changed, it would apply. > > > > So it is like typing in the command cd ~ and it takes you to the home directory. Gotcha. Kewl. :-D Wonder why that didn't hit me when I read it? Dale :-) :-) :-) -- gentoo-user@lists.gentoo.org mailing listReceived on Sun Feb 17 02:52:08 2008 This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 10:04:03 EDT |
||||||||||
|
|||||||||||