If I\'m in the Terminal and I want to exit or cancel a command how would I do so? Escape does nothing and hitting the up arrow copies the command.
Type \c and hit return. That will clear the current input statement.
\c