Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


How to properly redirect the output of command executed with sudo.

Feb 28, 2011, 20:03 (0 Talkback[s])
(Other stories by P├ętur Ingi Egilsson)

[ Thanks to Pétur Ingi Egilsson for this link. ]

"We are faced with a problem when trying to redirect with sudo, as the second part of the command is not executed with root privileges.

sudo command > outputfile
<>—-root——<>—user—<>

Complete Story

Related Stories: