close all screen session - jenhaoyang/backend_blog GitHub Wiki

screen -ls | grep '(Detached)' | awk 'sys {screen -S $1 -X quit}'
screen -ls | grep '(Detached)' | awk '{print $1}' | xargs -I % -t screen -X -S % quit
參考:
https://unix.stackexchange.com/questions/94527/how-do-i-kill-all-screens