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

domenator

macrumors newbie
Original poster
Apr 10, 2008
21
0
Hi all, I am at a loss with Google. What I want to know is how do I open a webpage using Terminal? I am doing a lot with Terminal at the moment and was wondering if it is possible. A Ubuntu forums website listed the command as:

>insert browser of choice here "www.thewebsite.com"

I have tried this and I simply get the message:

>-bash: safari: command not found

Am I missing a command before the browser? Any help would be appreciated. Thanks!
 
Using,
Code:
open http://www.google.com/
opened it in Firefox for me (which is my default browser).

To force Safari,
Code:
open -a Safari http://www.google.com/
 
Ah angelwatt you're the best man. That force safari also solved my second question I was going to pose. Topic closed it seems. Thanks for the fast responses all!
 
Use Lynx :).
Code:
lynx http://www.google.com/

That was the first thing I thought of until I realized the OP wanted to see the page in a GUI browser and not inside Terminal. I've used lynx on occasion to check accessibility of my web site.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.