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

stuart2102

macrumors regular
Original poster
May 29, 2011
205
0
Hi there macrumorians can you help me to solved my problem? I want to access the command "sudo pico etc/hosts" but when i try to access i can't see the display, example "127.0.0.1 local hosts and 255.255.255.255" and others, and yes i tried to use exit command inside the "sudo pico etc/hosts but it doest work, so what i did i close the window and open again then type exit, is it appropriate?
 
Hi there macrumorians can you help me to solved my problem? I want to access the command "sudo pico etc/hosts" but when i try to access i can't see the display, example "127.0.0.1 local hosts and 255.255.255.255" and others, and yes i tried to use exit command inside the "sudo pico etc/hosts but it doest work, so what i did i close the window and open again then type exit, is it appropriate?

  1. Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight
  2. Type the following command at the prompt:
  3. sudo nano /private/etc/hosts
  4. Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
  5. Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
  6. When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
  7. Quit out of Terminal when finished

Source: http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/
 
  1. Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight
  2. Type the following command at the prompt:
  3. sudo nano /private/etc/hosts
  4. Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
  5. Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
  6. When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
  7. Quit out of Terminal when finished

Source: http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/

Thank you so much...it wrks now
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.