Often, when I'm typing in a super long command(usually ruby on rails console code), I decide that I need to do something else first and therefore, have to delete the command which I just typed(but not executed) on the terminal. Is there a shortcut to do this? command+delete and option+delete do not work. The down arrow works sporadically.
If it helps, I'm on The El Capitan Developer Preview 3 but I've noticed this behaviour on Yosemite as well.