Get process name by PID

Under Linux, you can read proc filesystem. File /proc/<pid>/cmdline contains the commandline.

Leave a Comment