Opening Terminal Window

Discussion in 'iMac' started by stuart2102, Feb 20, 2013.

  1. stuart2102 macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #1
    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?
     
  2. turtlez macrumors 6502a

    turtlez

    Joined:
    Jun 17, 2012
    #2
    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/
     
  3. stuart2102 thread starter macrumors regular

    stuart2102

    Joined:
    May 29, 2011
    #3
    Thank you so much...it wrks now
     
  4. turtlez macrumors 6502a

    turtlez

    Joined:
    Jun 17, 2012
    #4
    Cool! :D
     

Share This Page