LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2011, 04:59 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
What is the PID of firefox process


In the event that firefox crashes, how do I find its PID?

If I only wish to close SOME tabs of firefox only, is it possible?
 
Old 09-23-2011, 05:19 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
1 Code below

Quote:

ps auwx | grep firefox

2. Not that I am aware of.
 
Old 09-23-2011, 11:20 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
to get the PID:
Code:
pidof firefox-bin
 
Old 09-23-2011, 05:13 PM   #4
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Firefox is good about crash recovery, so if you have one tab that is causing trouble, kill firefox, and when you start it back up, uncheck the tab that was crashing.
 
Old 09-23-2011, 06:06 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,052

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
If your only reason for wanting the pid is to kill the process, have a look at pkill/pgrep (I know this is not what you asked for, but it sounds as if it might be what you want).
 
Old 09-24-2011, 05:32 AM   #6
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by hitmen View Post
If I only wish to close SOME tabs of firefox only, is it possible?
Assuming you mean you want to close some tabs by killing off processes then no, that's not possible. Firefox does not run each tab as a separate process. It's one of those things that keeps coming up in lists of way Firefox could be improved.
 
Old 09-25-2011, 01:07 PM   #7
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
ps stands for process

what does auwx stand for? It isnt in the man pages.
 
Old 09-25-2011, 01:12 PM   #8
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
auwx is four separate options to the ps command. Each one of these is explained in the man page for ps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting pid of a process!! vishamr2000 Programming 34 03-12-2015 08:12 AM
about pid of process hamedn Programming 2 01-27-2010 06:21 PM
how to get the name of process from PID in C/C++? kulandaivelu Programming 3 02-03-2009 10:41 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 04:10 AM
[C++] Get process ID (PID) Moraxus Programming 5 10-16-2008 01:31 PM


All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration