1 |
On Saturday 16 February 2008, Dale wrote: |
2 |
> Neil Bothwick wrote: |
3 |
> > On Sat, 16 Feb 2008 08:22:19 -0800, Brian Marshall wrote: |
4 |
> >>> I have a lot of dir. and files in my home directory. I want to |
5 |
> >>> chown all of it to my user. How to do this by one comand ? |
6 |
> >>> Thanks |
7 |
> >> |
8 |
> >> With recursion: |
9 |
> >> chown -R user:group * |
10 |
> > |
11 |
> > That won't cover hidden files, try |
12 |
> > |
13 |
> > chown -R user: ~user |
14 |
> |
15 |
> Neil, |
16 |
> |
17 |
> What does the "~" make it do different? Got me curious about that. |
18 |
|
19 |
Change user only for those files that have a different one. Avoids |
20 |
unnecessary writes. |
21 |
|
22 |
Uwe |
23 |
|
24 |
-- |
25 |
Informal Linux Group Namibia: |
26 |
http://www.linux.org.na/ |
27 |
SysEx (Pty) Ltd.: |
28 |
http://www.SysEx.com.na/ |
29 |
-- |
30 |
gentoo-user@l.g.o mailing list |