[clug] Command of the Hour

David Tulloh david at tulloh.id.au
Tue Sep 16 00:59:25 GMT 2008

Owen wrote:
> On Tue, 16 Sep 2008 04:25:35 +1000
> Ian <darkstarsword at gmail.com> wrote:
>> Ok, I want to start a bit of a discussion here - I want everyone to
>> chime in and tell the list of any random, obscure and useful commands
>> they know of. Anything you have come across that has helped you in
>> some way or you thought would be really handy in some situation,
>> doesn't matter what.
> For all the times you forget to use sudo first up
> sudo !!
And sudo tee
Because `sudo echo foo > file` won't work when you don't have permission 
to change file, the shell does the redirection.
`echo foo | sudo tee file` will work for you.


More information about the linux mailing list