A friend asked me a question, some times he entered several shells and want to quit them at once. But typing exit or logout each time is kind of pain.. is there a way which can quit at once?! BTW: another simple question: sometimes open many x-terminals, and wanna know what is the process ID of a x-terminals, but use PS can not tell.. any way to do this? Thanks in advance.
n*a
3 楼
kill the login shell and leave it to the system to handle possible zombies? focus on each x-term, and ps, you will get the shell PID of that x-term, is this good enough? :-)
【在 a**n 的大作中提到】 : A friend asked me a question, some times he entered several shells : and want to quit them at once. But typing exit or logout each time : is kind of pain.. is there a way which can quit at once?! : BTW: another simple question: sometimes open many x-terminals, and : wanna know what is the process ID of a x-terminals, but use PS can not : tell.. any way to do this? : Thanks in advance.