Cheatsheet: Difference between revisions

Content added Content deleted
Line 634: Line 634:


Obtain the PID with a utility:
Obtain the PID with a utility:
ls -l /proc/$(pgrep -n python)/exe
pgrep -n python
pidof chrome - return all PIDs
pidof ~~
pidof -s chrome - return only 1 PID
ps ~~
ps -C chrome -o pid= - C = CMD


= Flows =
= Flows =