New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - Backtracking on a terminal command


Post Reply New Thread Subscribe

 
Thread Tools
Sedlex

 
Member Since: Aug 27, 2009
Posts: 2
Sedlex is on a distinguished road

Sedlex is offline
Hello!

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 slashdot.org:

sudo bash
echo "208.65.153.253 www.youtube.com" >> /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

Cheers!
QUOTE Thanks
cwa107

 
cwa107's Avatar
 
Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 26,487
cwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond repute
Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD

cwa107 is offline
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!
QUOTE Thanks
Sedlex

 
Member Since: Aug 27, 2009
Posts: 2
Sedlex is on a distinguished road

Sedlex is offline
Thank you very much, that was very helpful!
QUOTE Thanks

Post Reply New Thread Subscribe


« Need to Install 10.5, dont have Admin password | A specific upgrade question - wipe & install, with Time Machine »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Use Applescript to run a terminal command Turk182 OS X - Development and Darwin 1 02-12-2009 12:08 PM
Terminal - Missing command prompt AR3Y35 OS X - Operating System 16 02-09-2009 07:59 AM
Terminal command question MACGIRL34 OS X - Operating System 1 12-12-2007 04:26 PM
Creating an application to run a terminal command on startup? Starky OS X - Apps and Games 7 11-26-2007 11:57 PM
looking for a terminal emulator and command shell in Mac OSX CandiMarie OS X - Operating System 9 03-05-2004 03:53 PM

All times are GMT -4. The time now is 06:55 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?