how to cancel command in GRUNT shell

一世执手 提交于 2019-12-21 20:31:07

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/14043805/how-to-cancel-command-in-grunt-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!