Ubuntu Server Tips

Etienne Goyer etienne.goyer at canonical.com
Tue Aug 18 14:10:37 UTC 2009

Mark van Harmelen wrote:
> Are there things that experienced server users can remember as being
> perplexing 'how do I do that?' problems from earlier in their career?
> Perhaps things that have a short 'use this' answer.

Oh yeah!  It took me a long while to grok how to write redirected output
as root.

"Writing redirected command output as root from a regular user shell can
be achieved with judicious use of the tee and sudo command:
    'somecommand | sudo tee /etc/somefile'"

Etienne Goyer
Technical Account Manager - Canonical Ltd
Ubuntu Certified Instructor

 ~= Ubuntu: Linux for Human Beings =~

More information about the ubuntu-server mailing list