Linux: Processes Management Command (ps -ef, kill, netstat -apn)

List all the processes that are running: 


Use this command to list all the processes that are running now: 


ps -ef. Or ps -aux. 


About the difference between them: http://www.360doc.com/content/11/0426/13/6702151_112429071.shtml.


In general, there is no much difference. 


Kill process: 


If you want to kill a process, you can use the kill command by these two: 


1) kill -s 9 (pid)

2) kill -l (pid)

-l选项告诉kill命令用好像启动进程的用户已注销的方式结束进程。当使用该选项时,kill命令也试图杀死所留下的子进程。但这个命令也不是总能成功--或许仍然需要先手工杀死子进程,然后再杀死父进程。(Prevent from leaving the children process) 

3) kill (pid)


Here is a useful link of this: 

http://www.cnblogs.com/wangkangluo1/archive/2012/05/26/2518857.html 

http://blog.sina.com.cn/s/blog_975a2a540100ywyx.html


To investigate the portal usage of process: 


http://www.cnblogs.com/benio/archive/2010/09/15/1826728.html


Use netstat -apn to see all the portals that are used and the processes that are using them. 


Linux查看是多少位系统:

file /sbin/init 








  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值