Need some help with Terminal

Discussion in 'macOS' started by MortimerJazz, Sep 13, 2010.

  1. MortimerJazz macrumors regular

    Joined:
    Oct 25, 2007
    Location:
    London
    #1
    Hi there,

    I hope someone can help me here.

    I'm looking to set some virtual hosts up in Terminal.

    I'm accessing the set up fine (sudo nano /private/etc/hosts)

    But I can't figure out what I need to do in order to enter IP addresses and URL's. Can anyone help me? None of the HotKeys listed at the bottom of the screen seem to give me what I want.

    Thanks a lot in advance for your help
     
  2. mulo macrumors 68020

    mulo

    Joined:
    Aug 22, 2010
    Location:
    Behind you
  3. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #3
    pico is a symbolic link to nano, so your post adds nothing.
     
  4. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #4
    As you indicated, do sudo nano /private/etc/hosts in Terminal and supply your password if requested to do so.

    Use down-arrow key to move cursor to below existing lines, and then type in what you want to add. Press control-o to save (ie, WriteOut) and then control-x to exit.
     

Share This Page