Host File

Joined
Dec 3, 2008
Messages
4
Reaction score
0
Points
1
HI,
I have recently switched from a PC to an Imac running Leopard 10.5
Can anyone tell me how to save a modification I want to make to my Host File
in Terminal.
Any advice on the way to do it , or the keyboard shortcut would be greatly appreciated .I can't find a reference to this in any books or online for that matter .

Cheers ,


Barry.
 
Joined
Jan 12, 2009
Messages
1,096
Reaction score
19
Points
38
Location
Prague, Czech Republic
Your Mac's Specs
2,4Ghz 15" unibody
depends on how you are editting your file

with vim? I mean "vim filename"
to save, pres this sequence:
esc :w

to exit vim pres:
esc :q!

or you might be using nano? "nano filename"
then it's ^O to write out (save) and ^X to exit

after you press ^O you need to press enter, it prompts for the filename to save it as, but you don't want to change that, so just enter it away
^ is control just in case


any help?
 
OP
B
Joined
Dec 3, 2008
Messages
4
Reaction score
0
Points
1
Many thanks for your help I tried Nano and it worked fine .

once again thanks a lot .
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top