34 ms·
append something to some file owned by root, without running a root shell but just 'sudo': echo something | sudo tee -a somefile useful since "sudo echo somet
by ithkuil 16y ago
append something to some file owned by root, without running a root shell but just 'sudo':
echo something | sudo tee -a somefile
useful since "sudo echo something >somefile" will not do the job, as the redirect is performed by your shell, not the command being executed