How To Exit From top Command In Linux / Unix / BSD / OS X

To exit the top command in Linux, Unix, BSD, or OS X, you can use the following keyboard shortcuts:

  1. Press q: This will exit the top command immediately and return you to the terminal prompt.
  2. Press CTRL + C: This will exit the top command and return you to the terminal prompt.

Note: If you are using top within a terminal multiplexer, such as tmux or screen, you may need to use CTRL + A + q or CTRL + A + CTRL + C to exit.

Leave a Comment