PID (Process IDentifier) is the number that identifies a process running on an operational system.
Questions tagged [pid]
96 questions
350
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
- 6,981
- 14
- 37
- 46
122
votes
10 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.
- 16,755
- 32
- 111
- 189
67
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,952
- 2
- 15
- 15
33
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
- 475
- 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
- 1
- 3
- 4
27
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
- 375
- 1
- 3
- 6
27
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,237
- 10
- 29
- 49
22
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
- 11,660
- 20
- 63
- 73
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,088
- 21
- 70
- 112
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
- 265
- 2
- 9
18
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
- 13,008
- 6
- 65
- 103
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
- 1
- 3
- 8
16
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
- 395
- 1
- 3
- 12
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
- 309
- 1
- 3
- 14
11
votes
1 answer
Where can I find my (current shell process') PID?
I'm on OS X using ZSH (have lots of homebrew stuff, too).
I'd like to know the PID of my current terminal.
(I'm learning more about process management on *nix systems, pstree and the like, and so this is more an academic question vs. a specific use…
John Hinnegan
- 222
- 1
- 2
- 8