如何在 GRUNT shell 中取消命令 [英] how to cancel command in GRUNT shell
问题描述
这可能是一个更普遍的问题:Linux 中的许多工具都有自己的外壳.就我而言,我使用 pig 和 hbase.有时候在shell中执行一个命令,返回很多结果,我想取消它.例如,假设您执行 cat 'a.txt' 并且该文件很大.在不退出 shell 的情况下取消它的最佳方法是什么.如果我按 Ctrl+c,它将退出 shell.
This is probably a more general question: Many tools in linux have their own shells. In my case, I use pig and hbase. Sometimes when you execute a command in the shell, it returns a lot of results and I want to cancel it. Let's say for example you do cat 'a.txt' and that file is huge. What's the best way to cancel it without exiting the shell. If I press Ctrl+c it'll exit the shell.
推荐答案
kill
将终止具有指定 id 的 mapreduce 作业.这不完全是您要找的东西,但我知道没有更简单的解决方案.
kill <job_id>
will kill a mapreduce job `with the specified id. It's not exactly what you are looking for but there is no easier solution that I know off.
这篇关于如何在 GRUNT shell 中取消命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!