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?
On all POSIX-compliant systems, and with Linux, you can use
Here, the process is selected by its PID with
You can find the process name or the command used by the process-id or pid from
Here pid is the pid for which you want to find the name
To find the process name used by pid 2480 you use can
You can Also use awk in combination with ps
to print HEAD LINE you can use