Stack Exchange network consists of 180 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
What is a quick way to exit a program in the OSX terminal?
press control + C in your keyboard.
and in some man-page and vim editor write :q and press enter.
Try pressing Ctrl-c.
As they pointed out, you can press control+C in almost any terminal application
In OS X, you can additionally press command+.
Required, but never shown