How to redirect something using sudo


/ Published in: Bash
Save to your folder(s)

Tip from rmartin, but I think I've seen it also on some Ubuntu wiki.


Copy this code and paste it in your HTML
  1. echo "# whatever" | sudo tee -a /etc/apt/sources.list

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.