View Single Post
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#33
Are you sure it works correctly with uname -n?

Doing:
Code:
~# wget -O ~/hosts http://www.mvps.org/winhelp2002/hosts.txt && echo "127.0.0.1" $(uname -n) "localhost" > /etc/hosts && tr -d '\015' < ~/hosts >> /etc/hosts
Creates the entry of "127.0.0.1 RM696 localhost" into the first line of file instead...


Edit: Would you know how to instead in the above commands replace the contents of line 23 with the echo command instead?

Edit 2: Ah just realized my stupidness...The uname echo can remain as first line; it won't make any difference...

Last edited by thedead1440; 2012-11-29 at 12:46.