I have a new Ubuntu 12.04 VPS. I am trying to write a setup script that completes an entire LAMP installation. Where I am having trouble is appending a line to the /etc/ho
/etc/ho
echo "127.0.0.1 localhost `hostname`">./temp_hosts echo "192.241.xx.xx venus.example.com">>./temp_hosts cat /etc/hosts |tail -n +2 >>./temp_hosts cat ./temp_hosts > /etc/hosts rm ./temp_file