PID (Process IDentifier) is the number that identifies a process running on an operational system.
Questions tagged [pid]
99 questions
366
votes
11 answers
If I know the PID number of a process, how can I get its name?
If I have the PID number for a process (on a UNIX machine), how can I find out the name of its associated process?
What do I have to do?
AndreaNobili
- 7,381
126
votes
11 answers
How to get parent PID of a given process in GNU/Linux from command line?
Resolved before asked: cat /proc/1111/status | grep PPid
Vi.
- 17,755
68
votes
7 answers
PID:4 using Port 80
I was trying to install Zend Server CE on my computer but when I got to the point were I need to choose the port for my Web Server it says: "Web Server Port: 80 Occupied". So I decided to check what is using Port 80 with CMD by typing: "netstat -o…
apokaliptis
- 1,982
39
votes
6 answers
How to find PID's user name in Linux?
Can you help me to find the PID's user name?
Sometimes my server has high load. When I run top -c, I cannot even find the owner of a process which is causing load on the server.
Ranjithkumar T
- 535
- 1
- 5
- 6
30
votes
7 answers
Excluding grep from process list
I have cobbled together a command to return the process ID of a running daemon:
ps aux | grep daemon_name | awk "{ print \$2 }"
It works perfectly and returns the PID, but it also returns a second PID which is presumably the process I'm running…
tak
- 303
29
votes
7 answers
PID number in Task Manager can't be found
i tried running netstat -o to check what are the connections which are established. I saw two and they have PID numbers. When I checked it in my Task Manager, I couldn't find those PID numbers.
Is there any way to find them?
tintincutes
- 1,267
28
votes
2 answers
Linux - alternative places where to store pid file instead of /var/run
As written in the title, where should I let the init script write the pid file? are there any standard paths I should choose instead of the /var/run?
Could /tmp be a good place where to store it or there are drawbacks in that?
(Historical context:…
Murko
- 385
23
votes
6 answers
How to get the pid of a running process using a single command that parse the output of ps?
I am looking for a single line that does return the pid of a running process.
Currently I have:
ps -A -o pid,cmd|grep xxx|head -n 1
And this returns the fist pid, command. I need only the first number from the output and ignore the rest. I suppose…
sorin
- 12,189
21
votes
2 answers
Restart process on linux by its pidn number with kill command, how?
Well, I want to be able to restart processes on linux and so I looked into kill manpages for that. Apparently kill -l would list all the signals I could send to a process to do what I need, which are:
1) SIGHUP 2) SIGINT 3) SIGQUIT …
Ruben Marrero
- 445
- 1
- 5
- 12
21
votes
2 answers
What processes, if any, exist between PIDs 0 and 4 on Windows 7?
Just out of curiosity what are the processes between 0 and 4, and also between 4 and 200 something.
agz
- 8,438
20
votes
2 answers
Does Windows 7 reuse process IDs?
Does Windows 7 reuse process IDs?
The reason I ask this question is due to my experience that Windows XP and Linux never seems to generate process IDs higher than 20–30k. However, my Windows 7 machine will reach IDs as high as 5–10k or so within a…
isildur
- 275
19
votes
3 answers
How to identify terminated Windows process if I still have its PID?
Background: In the middle of my work, license agreement for installing "Microsoft Mouse and Keyboard Center" suddenly appeared. I'd like to understand what process launched the setup, but using Process Explorer, I saw it's gone, I was only able to…
miroxlav
- 14,845
18
votes
4 answers
How to kill one tab of google chrome using pid
I want to close one tab of chrome. I tried killing the pid of the tab, but the tab doesn't close instead says "Aw, Snap! Something went wrong while displaying this webpage. To continue, reload or go to another page". How can I get rid of this.
Naveed
- 333
16
votes
2 answers
Is /var/run/user/$UID the new /var/run for PID files?
I have an application (running as a service as root) that creates a PID file under /var/run. But I'm wondering whether this is now no longer best practice.
In Linux - alternative places where to store pid file instead of /var/run, asked in 2012,…
TSG
- 307
13
votes
3 answers
How to avoid killing the wrong process caused by linux PID reuse?
I am trying to write a pkill-like utility that matches processes by searching for a certain string in /proc/pid/environ and kills them. But the matched process may exit before I can kill it and another process may take its pid. In that case, I will…
John Ao
- 133