Check processes

If you want to see what processes are running use the command

ps -ef

If you want to look up all processes by user bob, this might help

pgrep -l -u bob

or

ps -ef | grep bob

Kill processes

To kill all the processes that you have the permission to kill, simply run the command

kill -15 -1

or

kill -9 -1

depending on the desired behavior (use man kill for details)

To kill a specific process, say, firefox, simply run

pkill firefox

or

killall firefox

depending on the behavior you want: What's the difference between 'killall' and 'pkill'?

Reference:

Ask Ubuntu:

http://askubuntu.com/questions/104903/how-do-i-kill-processes-in-ubuntu

最新文章

  1. 如何给main传参数
  2. SQL Server已提交读快照隔离级别的设置
  3. KendoUI系列:AutoComplete
  4. jquery插件之jquery-validation
  5. Sunglasses
  6. c++ 发布动态.so
  7. css hack方法总结
  8. 【Linux】鸟哥的Linux私房菜基础学习篇整理(七)
  9. Docker容器环境下ASP.NET Core Web API
  10. HDU5437 Alisha’s Party (优先队列 + 模拟)
  11. CSS3中文手册基础知识
  12. 《汇编语言程序设计》——仿windows计算器
  13. .net md5
  14. 锁和监视器之间的区别 – Java并发
  15. tomcat查看端口被占用
  16. framework7 入门(基础布局)
  17. 建立ftp服务器的网址
  18. JVM学习02:GC垃圾回收和内存分配
  19. str相关操作
  20. Wamp修改端口

热门文章

  1. STM32的PWM输出极性的问题
  2. makefile 中 $@ $^ %< 使用【转】
  3. Java中多线程使用匿名内部类的方式进行创建3种方式
  4. MyBatis关联查询分页
  5. 安装keepalived
  6. XCode属性面板使用说明
  7. PHP中判断字符串是否含有中文
  8. JavaEE基础(二)
  9. (java)==和equals()的使用小结
  10. 每日一九度之 题目1023:EXCEL排序