4 ms·
seems like the beaten to death shit jokes like all reddit posts
by jejdjfjf 2mo ago
seems like the beaten to death shit jokes like all reddit posts
- frollogaston 2mo agosudo echo "127.0.0.1 www.reddit.com" >> /etc/hosts
- Avicebron 2mo agoIf this is a glass house joke well done.
- qwerpy 2mo agoReddit is way worse. At least we pretend to be here for tech discussions, even if we can’t help but get baited by politics most of the time.
- Sabinus 2mo agodangs moderation here is pretty good and I think that helps.
- frollogaston 2mo agoThis is honestly the command I ran
- simoncion 2mo ago> This is honestly the command I ran Mmm. Unless your /etc/hosts is wide open or your shell is running as root, you got something like -bash: /etc/hosts: Permission denied because the way to do what you intended is to sudo 'tee' or something similar in function. AFAIK, you can't 'sudo' shell redirection.
- frollogaston 2mo agoYeah I actually ran it as root without the sudo then edited in the sudo, other comment with tee was correct
- jmholla 2mo agoThe 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.