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