sudo echo "121.0.0.1 test.dev" >> /etc/hosts
// Permission denied
sudo sh -c echo "121.0.0.1 test.dev" >> /etc/hosts
// Permission denied
sudo sed -e 's/test/dev/' ./etc/apache2/sites-available/test.conf
// Permission denied
sudo echo "121.0.0.1 test.dev" >> /etc/hosts
echo "121.0.0.1 test.dev" | sudo tee -a /etc/hosts
sudo sh -c 'echo "127.0.0.1\texample.com\n" >> /etc/hosts'