Linux kill multi processes
2016-01-19 13:54
507 查看
The following command prints the second column in the output of processes which contains oraxpo in their name.
$ ps -ef | grep oraxpo | grep -v grep | awk '{print $2}' 4665 4667 4669 4671 4673 4675 4677 4679 4681 4683 4685 4687 4689 4691 4713 4715 4719 4735 4749 7720
Now all we need to do is to pass the result of this command to "kill -9".
$ kill -9 `ps -ef | grep oraxpo | grep -v grep | awk '{print $2}'`
NOTE: Please don't try this unless you have tried every thing else and there is no way else left then killing oracle like this.
阅读更多相关文章推荐
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- "killall" to kill a group of processes on linux
- how-to-use-ps-kill-and-nice-to-manage-processes-in-linux
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- Linux: Processes Management Command (ps -ef, kill, netstat -apn)
- Kill Processes in Linux
- linux命令: ps、grep、kill
- Multitool Linux: Practical Uses for Open Source Software
- Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
- 每天一个linux命令(42):kill命令
- 【转】linux下杀死进程(kill)的N种方法
- linux中使用pthread_kill函数测试线程是否存活 .
- 嵌入式Linux并发程序设计,进程间通信方式,信号,信号相关函数,信号发送kill()/raise(),创建定时器alarm(),让进程进入等待态pause(),设置信号响应方式signal()
- Linux下批量Kill多个进程的方法
- 每天一个Linux命令(42):kill命令
- linux经常管理与查看指令:ps、pstree、top、kill、jobs和nice
- linux下杀死进程(kill)的N种方法