I'm trying to wrap my head around the thinking behind doing say
echo "nameserver 10.42.0.1" | sudo tee -a /etc/resolv.conf
rather than
echo "nameserver 10.42.0.1" >> /etc/resolv.conf
as root (e.g., after su
or sudo bash
). Is it a minimize time as root thing or is there something else to it?
vi
.