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)

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

[ 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

Complete Story

Related Stories: