How to get the process name using the pid or process id in linux

If you already have the PID of a process, run­ning the fol­low­ing com­mand will get you the process name

ls -l /proc/PID/exe

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...