3 ms·
now I need to use vim to reconfigure apt sources just so I can use a more normal editor Prepare and paste this into your terminal: echo "another line" | sud
by wruza 4y ago
now I need to use vim to reconfigure apt sources just so I can use a more normal editor
Prepare and paste this into your terminal:
echo "another line" | sudo tee -a /etc/apt/sources.list
Sorry for your pain, but choosing hard ways is a person’s business.
- LoveMortuus 4y agoI believe the parent was trying to say that the default editor is the hard option, even though easier and intuitive solutions exist.
- taskforcegemini 4y agoor just "echo 'another line' >> /etc/apt/sources.list"
- wruza 4y agoYes, but only when logged in as root.
- taskforcegemini 4y agoof course, but redundant if you are root
- taskforcegemini 4y ago*sudo is redundant