进程命令问题(PSBeginner 问题)

进程命令问题(PSBeginner 问题)

首先,对于这个蹩脚的问题,我很抱歉,关闭后它仍然在运行,我是初学者,

rohit@something:~$ ps
  PID TTY          TIME CMD
 4596 pts/1    00:00:02 bash
 4618 pts/1    00:00:02 du
 4620 pts/1    00:00:00 du
 4675 pts/1    00:00:00 wget
 4875 pts/1    00:00:08 find
 4876 pts/1    00:00:09 find
 5396 pts/1    00:00:04 find
 5402 pts/1    00:00:06 find
 5405 pts/1    00:00:14 find
 5409 pts/1    00:00:02 find
 5626 pts/1    00:00:01 bash
 6210 pts/1    00:00:00 ps

rohit@something:~$ kill 4618

rohit@something:~$ ps
  PID TTY          TIME CMD
 4596 pts/1    00:00:02 bash
 4618 pts/1    00:00:02 du
 4620 pts/1    00:00:00 du
 4675 pts/1    00:00:00 wget
 4875 pts/1    00:00:08 find
 4876 pts/1    00:00:09 find
 5396 pts/1    00:00:04 find
 5402 pts/1    00:00:06 find
 5405 pts/1    00:00:14 find
 5409 pts/1    00:00:02 find
 5626 pts/1    00:00:01 bash
 6211 pts/1    00:00:00 ps

答案1

如果正常终止不起作用,你可以使用信号 KILL 将其终止

kill -9 <PID>

所以在你的情况下

kill -9 4618

有关杀戮的更多信息,请参阅相关手册页

相关内容