this post was submitted on 17 Feb 2024
270 points (99.6% liked)

196

16985 readers
1474 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] SoonaPaana 5 points 1 year ago (4 children)

Also please refresh my memory on how to find the process ID

[–] [email protected] 11 points 1 year ago

You can do

ps aux | grep -i 

and the PID is in the second column of the output. However for this use case I recommend a process manager like htop or btop

[–] [email protected] 5 points 1 year ago

I use ps -aux | grep $EXECUTABLE

[–] [email protected] 2 points 1 year ago

htop or any process monitor will tell you.

[–] Krzd 1 points 1 year ago

top for Ubuntu at least will show you the top processes, I think sorted by averaged CPU usage.