Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mladenz

macrumors regular
Original poster
Jan 16, 2008
136
0
Hi guys,

Ive accidently deleted all my hosts in my terminal and now my MBP boots up slow.

Ive done the following:

- open terminal
- sudo -s
- enter password
- sudo pico etc/hosts

and i've deleted everything!

Now when i want to put it back i copy this:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost twoscomp.dev
255.255.255.255 broadcasthost
::1 localhost


Then i press CTRL + X --> Y to save but then i get this:

File Name to Write: etc/hosts

And i dont know what to fill in! can anyone help me please!?
 
If you can't create the file with pico, just create it with TextEdit, save it somewhere in your home directory, then use the mv command to move it to /etc/hosts .
 
thanks for the reply,

Where can i find the 'mv command' and i cant seem to find the folder(hosts) where ill have to put it in.

Can you please explain it to me?

PS: when i fill in a name or simply press 'return' when the terminal asks me "File Name to Write: etc/hosts" then i get "bus error"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.