1,内存占用最多的前20个程序
ps aux|head -1; ps aux | sort -k4nr | head -n 20
2.cpu 占用最多的前20个程序
ps aux|head -1; ps aux | sort -k3nr | head -n 20
[root@bogon ~]# ss -nutlp | grep 6979
tcp LISTEN 0 128 *:6979 *:* users:(("redis-server",pid=9946,fd=6))
#查找容器的