1
vote
1answer
29 views

Init process in linux

Who or Which process is the parent of INIT process? INIT is the first process which is initialized by the Kernel, kernel is not one process, So what is its parent process id value?
18
votes
3answers
12k views

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?
0
votes
1answer
293 views

How to start a process with a predefined (in case it is unused) PID?

Is it possible to start/run a process with a predefined PID? In Linux or in OS X (or BSD)?
21
votes
1answer
559 views

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.
1
vote
2answers
358 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changes the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
5
votes
3answers
404 views

Is a process PID guaranteed to stay the same as long as the process doesn't die?

I'm doing some simulation work with Linux, and the code I'm working on right now only works under the assumption that, once a process has been assigned a PID by the kernel, that PID will remain the ...
1
vote
2answers
936 views

Show PID of process just launched in ZSH

Can I show the PID of a process that I just launched, ideally at the end of the line of the command? Example: root in ~: mysqld .................. [PID 34567] 12121 mysql-logs start to come in... ...
2
votes
0answers
216 views

Routing packets to different available networks using process' pid / uid

I need to route packets from some processes(unique pids/uids) to desired network connection. So, Suppose we have 4 processes with pids 10, 11, 12, 13 respectively; and we have two network connections ...
1
vote
1answer
108 views

How to identify the process which has loaded a certain file

I have certain file in the disk which I am unable to delete, as it mentions that it's being used by a certain process. How do I identify the process which is using this file?
16
votes
6answers
33k views

How to get parent PID of a given process in GNU/Linux from command line?

Resolved before asked: cat /proc/1111/status | grep PPid