Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers 3

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
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
add comment

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 at 9:51
    
@sriraj you are welcome but if you find this help you it's better to mark as answer and upvote –  Ask Mar 3 at 10:16
add comment

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
add comment

Your Answer

 
discard

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.