Created
April 15, 2015 09:23
-
-
Save charlieanstey/45c11118f2e473ae598f to your computer and use it in GitHub Desktop.
Shell :: Output to file using sudo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use tee | |
# from http://stackoverflow.com/a/550808/4498130 | |
echo 'deb blah # blah' | sudo tee --append /etc/apt/sources.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment