Linux Today: Linux News On Internet Time.





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: