Comment

Comment by jmholla

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
parent jmholla 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton