Results 1 to 3 of 3
  1. #1

    Member Since
    Aug 27, 2009
    Backtracking on a terminal command

    In a vague attempt at accessing youtube from Turkey, which currently has a ban of sorts going on the site, I entered the following commands in a terminal window after finding it as a possible solution on

    sudo bash
    echo "" >> /etc/hosts

    This sort of fixed my problem whilst in Turkey, but now that I'm out of the country and in a place where freedom of expression and information is (in appearance at least) better protected, I find myself unable to access youtube in any way through Safari.

    So the question, in a nutshell, is: how do I backtrack on the command I entered previously? ie. : how do I erase whatever modification it may have made?

    Any answers appreciated, I'm unix illiterate


  2. #2

    cwa107's Avatar
    Member Since
    Dec 20, 2006
    Lake Mary, Florida
    15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD
    You just need to edit your hosts file.

    Here's how I'd do it:

    Open up Terminal and type:

    sudo pico /etc/hosts

    That will open up a relatively easy to use text editor and allow you to remove the entry (just delete the entire line that your edit is on). When you're done, hit Control-X, 'Y' to save changes and then type exit at the prompt.

    That's all there is to it.
    Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics!

  3. #3

    Member Since
    Aug 27, 2009
    Thank you very much, that was very helpful!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal command help.
    By ladylisak in forum OS X - Operating System
    Replies: 2
    Last Post: 10-18-2013, 02:47 PM
  2. Terminal 'ls' Command Help
    By xxSwagPanda in forum OS X - Operating System
    Replies: 1
    Last Post: 03-27-2013, 12:18 AM
  3. Please help me with this Terminal command
    By nowakchr in forum OS X - Operating System
    Replies: 2
    Last Post: 12-12-2010, 11:39 AM
  4. terminal command help
    By ytbryan in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 09-18-2009, 06:22 PM
  5. cd Terminal Command
    By Mac_Daddy in forum OS X - Operating System
    Replies: 4
    Last Post: 11-19-2007, 10:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts