close
NAME
ps - report a snapshot of the current processes.
ps aux | grep gedit |
sean 2915 0.1 1.6 69376 16644 ? S 06:52 0:00 gedit
sean 2959 0.0 0.0 5832 836 pts/0 R+ 07:04 0:00 grep gedit
[sean@myserv 桌面]$ kill 2915
使用ps aux 列出工作緒 再管線給 grep 找出要殺的工作緒編號
再使用kill 工作緒中止工作緒
kill <pid> ( 一般結束 )
kill -15 <pid> ( 一般結束 )
kill -9 <pid> ( 強制結束 )
全站熱搜