Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 5241  / 2 Years ago, sun, june 19, 2022, 11:36:37

I tried to kill a process using pkill -9 <pid>


Whenever I run that command it returns nothing and the process isn't killed either.


How do I proceed now?


Edit:


I was stupid trying to use pkill with pid. pkill takes the name of the process not pid. kill is the command that takes pid as pointed out in the accepted answer.


However the other answer actual does a good job explaining the actual possibility of pkill not killing and is very well written.


More From » process

 Answers
4

If I remember correctly (I never use it) pkill uses the process name, not the PID. to use the PID use kill instead of pkill.


[#1483] Tuesday, June 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainlyyor

Total Points: 210
Total Questions: 129
Total Answers: 116

Location: Barbados
Member since Sun, Nov 27, 2022
1 Year ago
ainlyyor questions
Sun, Jan 29, 23, 10:33, 1 Year ago
Sat, Feb 4, 23, 18:19, 1 Year ago
Sat, May 29, 21, 19:45, 3 Years ago
;