1 |
felix@×××××××.com wrote: |
2 |
> On Sun, Feb 17, 2008 at 12:52:05AM +0000, Neil Bothwick wrote: |
3 |
> |
4 |
>> On Sat, 16 Feb 2008 10:50:37 -0600, Dale wrote: |
5 |
>> |
6 |
>> |
7 |
>>>>> With recursion: |
8 |
>>>>> chown -R user:group * |
9 |
>>>>> |
10 |
>>>> That won't cover hidden files, try |
11 |
>>>> |
12 |
>>>> chown -R user: ~user |
13 |
>>>> |
14 |
>>> What does the "~" make it do different? Got me curious about that. |
15 |
>>> |
16 |
>> Nothing in itself, it just refers to the user's home directory. The |
17 |
>> important point is that giving a directory matces all files in that |
18 |
>> directory, whereas * omits those beginning with a . in most people's |
19 |
>> shells. |
20 |
>> |
21 |
> |
22 |
> * also omits the home directory itself. It probably wouldn't matter |
23 |
> in this case, but if you copied a user's home directory from one |
24 |
> machine to another where the uid changed, it would apply. |
25 |
> |
26 |
> |
27 |
> |
28 |
> |
29 |
|
30 |
So it is like typing in the command cd ~ and it takes you to the home |
31 |
directory. Gotcha. Kewl. :-D |
32 |
|
33 |
Wonder why that didn't hit me when I read it? |
34 |
|
35 |
Dale |
36 |
|
37 |
:-) :-) :-) |
38 |
-- |
39 |
gentoo-user@l.g.o mailing list |