|
楼主 |
发表于 2021-1-16 11:34:00
|
显示全部楼层
ps -aux | awk '{print$2,$4}'|awk '{if($2>=90)print}' |awk '{print$1}' | xargs kill -9
Usage:
kill [options] <pid|name> [...]
Options:
-a, --all do not restrict the name-to-pid conversion to processes
with the same uid as the present process
-s, --signal <sig> send specified signal
-q, --queue <sig> use sigqueue(2) rather than kill(2)
-p, --pid print pids without signaling them
-l, --list [=<signal>] list signal names, or convert one to a name
-L, --table list signal names and numbers
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
大佬,这样? |
|