how to get name of PID process linux

Subject:

On all POSIX-compliant systems, and with Linux, you can use ps:

ps -p 1337 -o comm=

Here, the process is selected by its PID with -p. The -o option specifies the output format, commmeaning the command name.

2016-09-18 08:41:17gstlouis