Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I am configuring hotkeys for commands and want a way to open websites from the command line.

For example, how would I open YouTube directly in Firefox without first opening the browser and then entering the address for YouTube?

share|improve this question

marked as duplicate by Radu Rădeanu, waltinator, 123456, souravc, Warren Hill May 23 '14 at 7:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 5 down vote accepted

Use the command


This should do it. 8 )

share|improve this answer
that did it!! just had to restart firefox. Thx :D – ubuntu.stuff Feb 20 '14 at 17:50

also look at xdg-open which uses the default program for opening the link

some documentation from Ubuntu:

xdg-open - opens a file or URL in the user’s preferred application

But works the same on Ubuntu

share|improve this answer
+1 For xdg-open! – blade19899 Feb 20 '14 at 23:44

If you only need to open it in the background use:


To download a page (optionally mirror sub pages):

wget --mirror -p --convert-links -P ~/Desktop/

If you want to open it and see it

and you use firefox:


or you use google chrome

share|improve this answer
oh that's a nice trick. thx a lot :D – ubuntu.stuff Feb 20 '14 at 17:52
I just tried it, but it doesn't work... – ubuntu.stuff Feb 20 '14 at 17:58
@ubuntu.stuff which one doesn't work for you? – kamil Feb 20 '14 at 18:01
well the very top one. wget does not do anything... – ubuntu.stuff Feb 20 '14 at 18:05
Indeed, it does, but you're not seeing what happened. do you want to save the page? – kamil Feb 20 '14 at 18:13

If you want to use the web page from an xterm/command line then you can install lynx on Ubuntu 12.04 LTS. I have lynx-cur installed.

apt-get install lynx-cur

I don't think you need any special repositories,


I use it to do screen scrapes

wget can be used as follows if you want to look at what is going by:

wget -O- -S | more

This will send the output to stdout, and give you the server-response info

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.