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

I am new to linux and ubuntu 12.04 lts server.

Can anyone please help, how can I run firefox under command prompt

share|improve this question
do you have any Graphical Interface Manually installed. Although you can issue Firefox commands from CLI but it requires GUI to be present, unless no Use at all. There are text based browsers like Elinks and Lynx. – atenz Jul 5 '12 at 19:13
Got that , i was hoping with the intention that OP will edit and add some relevant information in Question through that. Nothing more . – atenz Jul 5 '12 at 19:22

If you installed Ubuntu Server 12.04 you'll have to install the runtime environment as well. And if you are doing this remotely, you need to use ssh -X in your remote connection command (do NOT automatically assume that will work)

Doing sudo apt-get install firefox will install ffox and its dependencies, as well as a runtime environment (I believe). Note that when you say 'how can i run ffox under command prompt', you need to be more specific, i.e. are you trying to run it from a terminal so it opens on the system its installed in, or are you trying to run it in the terminal itself, such that you have a terminal web browser. Ffox does not work in the command line as a web browser if you are not using a GUI envirionment. (take a look at w3m if you need a terminal text-like browser)

share|improve this answer
You may want to appear less condescending, bolding and capsing the not good practice. :p – izx Jul 5 '12 at 19:22

Do you actually NEED firefox or do you just need a web browser that works in the terminal? I would try sudo apt-get install links or lynx both of those are terminal based web browsers.

If you plan on using this installation as your main computer you might want to reinstall with the ubuntu 12.04 Desktop version, might be a bit easier for someone who is "new" to linux

share|improve this answer

You can Run Firefox through Terminal using just single word command

syn :


To open any other page through it, just do it like

Syn :

    firefox <Domain Name>

Example :


This is to open through firefox.

If you have not properly installed firefox just type command in terminal like

Syn :

Sudo apt-get install firefox.

And Enter your password.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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