JimD wrote:
> I have been using Linux for a number of years and the one "trick" I
> have never read how to do is something like:
> 
> sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords

echo whatnot | sudo sh -c ">> foo"

If you don't wish to append, the following can be used
as well:

echo whatever | sudo dd of=some-file

> Another one I always wanted to know if it is possible is:
> 
> sudo > /var/log/foo.log

What's that supposed to do? Truncate the file?

sudo sh -c "> foo.log"

> Both give me error message.  Are either of these command possible?

See above.

Alexander Skwar
-- 
"It is easier to fight for principles than to live up to them."
-- Alfred Adler
-- 
gentoo-user@gentoo.org mailing list

Reply via email to