Exit grep because it seems to be hanging

Perhaps you’ve typed in a grep command that wasn’t well thought out. Here is how to exit grep and get your terminal to respond again.

Make sure the terminal window is active and press the following keys to exit grep and cancel the current command: ctrl + c

ctrl + c

This gets you back to :

$ yourusername@YourComputerName TERMINALNAME ~/currentfolder (status)
$ |

and you can type new commands again.