4 ms·
The write by your shell through the redirect won't get those elevated privileges. You need to use something like tee: echo "127.0.0.1 www.reddit.com" |
by jmholla 2mo ago
The write by your shell through the redirect won't get those elevated privileges. You need to use something like tee:
echo "127.0.0.1 www.reddit.com" | sudo tee -a /etc/hosts
- fragmede 2mo agothe sudo -s above it is implied.