3 ms·I use "tee" for these scenarios. echo "127.0.0.1 sourceforge.net" |sudo tee -a /etc/hostsby ytjohn 11y agoI use "tee" for these scenarios. echo "127.0.0.1 sourceforge.net" |sudo tee -a /etc/hosts