如何从 bash 中杀死除一个 python 脚本之外的所有 python 进程。(我知道它的名字,但它的 pid 有时可以改变)。
我需要一种pkill -f "python"但不包括python特定脚本。
pkill -f "python"
请指教。
bash
bash ×1