1 |
JimD wrote: |
2 |
> I have been using Linux for a number of years and the one "trick" I |
3 |
> have never read how to do is something like: |
4 |
> |
5 |
> sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords |
6 |
|
7 |
echo whatnot | sudo sh -c ">> foo" |
8 |
|
9 |
If you don't wish to append, the following can be used |
10 |
as well: |
11 |
|
12 |
echo whatever | sudo dd of=some-file |
13 |
|
14 |
> Another one I always wanted to know if it is possible is: |
15 |
> |
16 |
> sudo > /var/log/foo.log |
17 |
|
18 |
What's that supposed to do? Truncate the file? |
19 |
|
20 |
sudo sh -c "> foo.log" |
21 |
|
22 |
> Both give me error message. Are either of these command possible? |
23 |
|
24 |
See above. |
25 |
|
26 |
Alexander Skwar |
27 |
-- |
28 |
"It is easier to fight for principles than to live up to them." |
29 |
-- Alfred Adler |
30 |
-- |
31 |
gentoo-user@g.o mailing list |