查看当前 screen 列表:
screen -ls
查看 screen 数量:
screen -ls |awk '/Socket/'|awk '{print $1}'
按照数量来关闭,如果当前所有六个:
screen -ls|awk 'NR>=2&&NR<=6{print $1}'|awk '{print "screen -S "$1" -X quit"}'|sh
posted on 2020-12-03 15:20 下雨天唱情歌 阅读(5) 评论(0) 编辑 收藏 举报 来源
Powered by: 博客园 Copyright © 2024 下雨天唱情歌 Powered by .NET 9.0 on Kubernetes