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

how to restart firefox from the command-line. I have already given as "firefox". Is this the right command to restart the firefox?

share|improve this question

At least in my version, Firefox doesn't have a restart option. You can kill the process and then start it again. For example:

killall firefox

If killall doesn't cut it, you can use pkill instead. Just keep in mind that pkill would kill any process with firefox in its name, though probably that's not a big concern.

share|improve this answer

First kill all processes that is named Firefox which means killing the existing running firefox then run it again

pkill firefox
firefox &
share|improve this answer
thank you very much – sriraj Mar 3 '14 at 9:51
@sriraj you are welcome but if you find this help you it's better to mark as answer and upvote – Maythux Mar 3 '14 at 10:16

The below would be better since using nohup is cleaner and forcing firefox to stop wit -9 is sometimes important

pkill -9 firefox
nohup firefox &
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.