【转载】【Ubuntu】Ubuntu程序进程查看与关闭进程

本文转载自:anno_ym雨 —— 【Ubuntu】Ubuntu程序进程查看与关闭进程

  

参考

https://blog.csdn.net/JNingWei/article/details/78440106

【查看进程】【https://blog.csdn.net/xudailong_blog/article/details/78376895

【关闭进程】【https://blog.csdn.net/lufangbo/article/details/79376601

例如

ps –aux     //查看进程号
ps –aux | more //全部查看
ps –ef | grep mysql //查看mysql的进程
kill -9 3306 //强制杀掉进程号3306

  

比如查看 firefox 的相关进程信息

ps -aux|grep firefox

ps -aux|grep nvidia

ps -aux|grep terminal

 

关闭某个进程

kill 7082    # 7082位某个进程的PID(比如firefox的某个进程PID是7082 则关闭firefox的进程)

 

原文地址:https://www.cnblogs.com/LinQingYang/p/12488806.html