If I know the PID number of a process can I know its name?
Solution 1:
Did you try either:
ps -p <PID> -o cmd
or if you only want the command name
ps -p <PID> -o comm
Or try this one (tested on Ubuntu):
cat /proc/<PID>/cmdline
Solution 2:
Try ps -eo pid,command PIDNUMBER
Solution 3:
try top
in terminal it will give you all details of PID
and Process name