将启动命令中包含某个字符串的进行杀死
2016-05-03 23:31
211 查看
[root@dn01 testbash]# ps -ef | grep hello root 24794 7457 0 11:09 pts/2 00:00:00 sh hello.sh root 24910 7457 0 11:09 pts/2 00:00:00 sh hello.sh root 25295 7457 0 11:11 pts/2 00:00:00 grep hello
使用
ps aux | grep hello | grep -v grep |awk '{print $2}'| xargs kill -9
可以将上述的前两个进程杀死
相关文章推荐
- [android] 切换按钮-自定义控件-拖动效果
- 状态模式-c++实现
- 【MATLAB】image和imshow这俩小妖精的事。。
- 多线程——线程的生命周期
- shell遍历目录下所有文件
- Android中的5种数据存储方式
- 2016年5月03日
- Apache Maven项目提供的WAR插件详解
- 关于64位系统Oracle安装之后plsql无法使用的情况
- 自定义UIButton
- linux系统源配置(根据自己理解编写,不当之处,敬请指教)
- kafka的理解
- 隐式Intent调用
- SpringMVC详细示例实战教程
- Runloop的使用
- 在CentOS 7中启动/停止/重启服务
- 字符串的排列
- 第五次程序设计作业 C++计算器雏形 调用文件输入输出
- Minecraft源码分析(2) - Block,Section和Chunk
- SPOJ GSS1 Can you answer these queries I