G'Day; I've been looking for a line of code which shows all running programs in the terminal and allows you to kill one by using the number on the left, I think it starts with "cp".
Regards Miykel
G'Day; I've been looking for a line of code which shows all running programs in the terminal and allows you to kill one by using the number on the left, I think it starts with "cp".
Regards Miykel
To list all processes, their 'pid' and their owners ...
To kill one of your processes ...Code:ps -eaf
To kill processes not owned by you ...Code:kill -9 'pid'
Code:sudo kill -9 'pid'
Another method...
ps -e | grep <name of the process>
sudo killall <name of the process>
if the first command does not return anything then you don't have that process running, hence no need to kill it.
if it does not works..... then
sudo kill -9 pid
is the best alternate
A stopped clock shows right time twice a day
Thanks once again guys; told you it started with cp..........not...........lol.
Many Thanks Miykel
Bookmarks