≡ Menu

HowTo: Exit From top Command In Linux / Unix / BSD / OS X

I am a new Linux and Unix system users. I was told to use the top command to display and update sorted information about processes. I do not know how to exit from top command. I simply close the Terminal app. How do I exit from top command without closing my Terminal on Linux/Unix-like operating systems?

When top is run in interactive (non-logging) mode, it is possible to control the output of top, as well as interactively send signals to processes. When operating top, the two most important keys are help (h or ?) and quit (q) key.

top command options

You need to just press q (small letter q) to quit or exit from top session.


Alternatively, you could simply use the traditional interrupt key ^C (press CTRL+C) when you’re done with top command.

Display help

To display help just press ?




Related media (Video) – Exit from top command

This tutorial is also available in a quick video format:

(Video 01: How to exit from top command)

Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 3 comments… add one }
  • aref ghobadi August 17, 2015, 9:57 am

    thanks a lot

  • ken October 3, 2015, 8:28 am

    On Openwrt and Dd-wrt I found that only “CTRL+C” works to quit using Top “q, h, ?” does not work, on other Linux / Unix based systems I have all the commands to quit Top work “q, h, ?, and CTRL+C”, not sure why but maybe someone else will find this useful.

  • Danny October 18, 2016, 12:38 am

    Thanks! Such a simple yet useful tip!

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: ,