Answers:
killing 0不会杀死pid0。相反,它是kill杀死当前组中所有进程的一种选择。使用您的命令,您将杀死发出该kill命令的外壳程序的进程组ID(GID)中的所有内容。
从kill手册页:
pid... Specify the list of processes that kill should signal. Each pid
can be one of five things:
...
0 All processes in the current process group are signaled.