News for hackers. Stuff that matters.
Re:Top Ten One-Liners from CommandLineFu Explained by duck on Thursday March 18, 2010 @07:59AM (#1201032)
#3. Save a file you edited in vim without the needed permissions

:w !sudo tee %

I've used vim for a long time, but didn't know about this one.

Re:Top Ten One-Liners from CommandLineFu Explained by erlanger on Thursday March 18, 2010 @09:41AM (#1201244)
Of course it assumes sudo's present.