答案1
pkill
或者skill
似乎是答案:
$ bash
$ bash
$ pkill -KILL -u $USER
Ubuntu 11.10 mach1 tty1
mach1 login: _
来自skill
手册页,可以使用其他退出信号代替-KILL
:
Name Num Action Description
ALRM 14 exit
HUP 1 exit
INT 2 exit
KILL 9 exit this signal may not be blocked
PIPE 13 exit
POLL exit
PROF exit
TERM 15 exit
USR1 exit
USR2 exit
VTALRM exit
STKFLT exit may not be implemented