To exit the top
command in Linux, Unix, BSD, or OS X, you can use the following keyboard shortcuts:
- Press
q
: This will exit thetop
command immediately and return you to the terminal prompt. - Press
CTRL
+C
: This will exit thetop
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.