简体   繁体   English

如何在Linux中杀死R的并行程序

[英]how to kill parallel program of R in Linux

I use R to do parallel computing. 我用R做并行计算。 Every time, when I want to kill the parallel program, I always use kill 2130 2131 6456 (PID). 每当我想杀死并行程序时,我总是使用kill 2130 2131 6456 (PID)。 Is there a way to kill all the programs of R? 有没有办法杀死R的所有程序? 在此输入图像描述

Do

 killall R

or 要么

 killall -9 R

So see the help pages for pgrep and related utilities. 请参阅pgrep和相关实用程序的帮助页面。 Also useful is htop instead of top and just hitting k for kill in it. 同样有用的是htop而不是top ,只需要点击k可以杀死它。

There are a bazillion such helper programs -- google for 'useful command-line programs' and eg this tutorial comes up. 有许多这样的帮助程序 - 谷歌用于'有用的命令行程序',例如本教程出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM