linux进程管理相关命令

ps 

ps aux
ps -ef | grep -E "supervisor|PPID" 

top

可以按一定规则对top的结果进行排序

# 监控单一进程
top -p pid 

kill

#默认15,常用9
kill -9 process_id
killall process_name

netstat

-t, --tcp
-u, --udp
-l, --listening
Show only listening sockets.

-n
Show numerical addresses instead of trying to determine symbolic host, port or user names.
-p
Show the PID and name of the program to which each socket belongs.
-e, --extend
Display additional information. Use this option twice for maximum detail.

jobs

# 显示后台进程
jobs -l

 

参考文档:

http://man.linuxde.net/netstat

netstat 的10个基本用法

posted @ 2015-05-19 20:49  Sawyer Ford  阅读(225)  评论(0编辑  收藏  举报