Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I entered a command in terminal and had Mac OS lion execute it successfully. I simply would like to stop that execution and negate what I had the computer do. I have done the history -c command and the terminal history is gone but the command execution is still happening. Any suggestions? Thanks

share|improve this question

2 Answers 2

CtrlC is the standard "interrupt" key on – all Unix-like systems, including OS X.

However, there is no standard "undo this". Once you ran a command to do something, and it did something, it is done. How to undo it – or whether it's at all possible to undo it – depends very much on what exact command you ran.

share|improve this answer

You likely 'backgrounded' the processes,

Type jobs to see any background processes

Type fg to resume the #1 background process

Then press ctrl + c to interrupt the process.

If all else fails, run ps aux, find the process id and send it a kill 9, or just run top


Side note: top is kind of ugly, install htop

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.