charlieanstey
4/15/2015 - 9:23 AM

Shell :: Output to file using sudo

Shell :: Output to file using sudo

# Use tee
# from http://stackoverflow.com/a/550808/4498130

echo 'deb blah # blah' | sudo tee --append /etc/apt/sources.list