pkill -t 参数是什么意思?

pkill -t 查到参数是 -t:指定开启进程的终端。

这个是什么意思

阅读 2.1k
1 个回答

比如你在 tty1 和 tty2 各开了一个 python

pkill -t tty2 python 就可以只杀 tty2 的那个

man page 说得还是挺清楚的吧

-t, --terminal term,...
      Only  match  processes  whose  controlling terminal is listed.  The terminal
      name should be specified without the "/dev/" prefix.
推荐问题