Blog

03/06/2019

How To 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?

The top command displays Linux/Unix processes in your Terminal app. You get a dynamic real-time view of a running system. Use top command to see and update information about the top cpu processes on your server. To start top command, just type:
$ top
$ top [options]
$ top

How to exit from top command on Linux/Unix-like system

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 option to quit session

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

q

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

Getting help with top command

To display help just press ?

?

OR

h

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)


This entry is 1 of 4 in the Exit From Linux and Unix “app” Tutorial series. Keep reading the rest of the series:
  1. How To Exit From top Command In Linux / Unix / BSD / OS X
  2. How To Exit Vim Text Editor Command
  3. Vi / Vim: Save And Quit The Editor Command
  4. How to reload .vimrc file without restarting vim on Linux/Unix

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...