脚本_查找 Linux 系统中的僵尸进程

#!bin/bash
#功能:查找Linux系统中的僵尸进程
#作者:liusingbon
#使用awk判断ps命令输出的第8列为Z时,显示该进程的 PID 和进程命令
ps aux |awk '{if($8 == "Z"){print $2,$11}}'

猜你喜欢

转载自www.cnblogs.com/liusingbon/p/11116151.html