قالب وردپرس درنا توس
Home / Tips and Tricks / How to use the Linux command (and understand its results)

How to use the Linux command (and understand its results)



  A terminal issue on a Linux laptop.
Fatmawati Achmad Zaenuri / Shutterstock

The Linux command top is one of the stalwarts in Unix-like operating systems. Its utilitarian display is full of useful information about your system's running processes and resource usage. But did you know that it also supports color, selection and even elementary graphs?

An information-packed dashboard

The command top has been around since 1

984, and there are many variants of it. For this article we are running Ubuntu 18.04 with all the corrections applied and version 3.3.12 of top . We also cross-referenced everything on two other test computers, one running Fedora and the other Manjaro.

Standard top shows crams as much information as possible in the terminal window. Information is a prerequisite for the administration, so it is good. One of the characteristics of a good system administrator is the ability to identify new problems and deal with them before they affect the service. top gives you a dashboard with many different system values ​​to help you do just that.

The screen is best described as functional, rather than intuitive, and abbreviations abound. When you meet top it feels crowded, cryptic and frightened. But with a few button presses, you can set the content and format of the screen depending on what is important to you.

Check your version of the peak

To check which version of the peak you have, type the following in a terminal window:

  top -v 

  top -v in a terminal window.

If your version is far behind on 3.3.12, it may not support all features we will cover. [19659008] The default display

You can start at the top by typing the following and hitting “Enter”:

  top 

  top in a terminal window.

The default display contains two information areas: the summary area (or dashboard) and the task area (or process list). By default, the top updates its display every three seconds – you will notice a slight flicker when it does.

<img class = "alignnone wp-image-669300 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x3-3 .png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.cDytrrTKjh.png "alt =" the default image in a terminal window. "Width =" 646 "height = "382" src = "/ sidespeed_static / 1.JiBnMqyl6S.gif" onload = "sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);" onerror = "this.onerror = null; pagespeed.lazyLoadImages.loadIfVisAb)

The first row of numbers on the dashboard contains the time, how long your computer has been running, the number of people logged in, and what the load average has been during one, five and The second row shows the number of tasks and their state: run, stopped, sleep or zombie.

The third row shows the following central processing unit values:

  • us: Amount of time CPU spends executing processes for people in " user space. "
  • sy: Amount of time used to run system" core space "processes.
  • ni: Amount of time used to execute processes with a manual set of nice value. [19659021] id: Amount of CPU idle time.
  • wa: Amount of time the CPU spends waiting for I / O to complete.
  • hello: Time spent on service hardware interrupts.
  • si: Amount of time spent on software outage service.
  • st: Amount of lost time due to running virtual machines ("stealing time").

The fourth row shows the total amount (in kibibytes) of physical memory, and how much is free, used and buffered or cached.

The fifth row shows the total amount (even in kibibytes) of exchange memory, and how much is free, used and available. The latter includes memory that is expected to be recovered from the cache memory.

The column headings in the process list are as follows:

  • PID: Process ID.
  • USER: The owner of the process.
  • PR: Process Priority.
  • NI: The fine value of the process.
  • VIRT: Amount of virtual memory used by the process.
  • RES: Amount of resident memory used by the process.
  • SHR: Amount of shared memory used by the process.
  • S: Status of the process. (See the list below for the values ​​this field can take).
  • % CPU: The percentage of CPU time used by the process since the last update.
  • % MEM: The percentage of physical memory used.
  • TIME +: Total CPU time used by the task for hundreds of seconds.
  • COMMAND: The command name or command line (name + option).

Memory values ​​are displayed in kibibytes. The column COMMAND is off the screen to the right – it did not fit in the picture above, but we will see it shortly.

The status of the process can be one of the following:

  • D: Uninterrupted sleep
  • R: Running
  • S: Sleeping
  • T: Tracked ( stopped)
  • Z: Zombie

Press Q to leave at the top .

Browse the display

You can press the up or down arrows, home, end and side up or down to move up and down and access all processes.

Press the left or right arrow to move the process list sideways. This is useful for seeing all columns that do not fit into the terminal window.

In the image below we have pressed the right arrow a few times to see the column COMMAND .

 at the top with the process list rolled sideways to reveal the command column, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Changing the numeric units to display the values ​​of units [1965900]. Press Capital E to scroll through the devices used to display memory values ​​in these options: kibibytes, mebibytes, gibibytes, tebibytes, pebibytes, and exbibytes. The unit used is the first entry in row four and five.

Press lower case "e" to do the same for the values ​​in the process list: kibibytes, mibibytes, gibibytes, tebibytes and pebibytes.

We pressed E to set the dashboard memory units to gibibytes and "e" to set the process list memory units to mebibytes.

<img class = "alignnone wp-image-669302 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/4-4-4 .png "alt =" top with gibibytes and mebibytes used for memory devices in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMay (this);" onerror = "this.onerror = null; sidespeed.lazyLoadImages.loadIfBis;]

Change summary contents

You can change the display settings for the lines in the dashboard or delete them completely.

Press l to toggle or merge load chart line (first row). We removed the load overview line in the image below.

 Download the summary line from the top of a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S .gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

end if you have a multi see individual statistics for each CPU. There are four processors on our computer. We press 1 to see how hard each of them works.

<img class = "alignnone wp-image-669305 size-full" data -pagespeed-lazy-src = "Https://www.howtogeek.com/wp-content/uploads/2020/04/x7-3.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+ cp + md.ic.ACJBWkIewY.png "alt =" at the top with the cpu screen extended to view individual CPU statistics, in a terminal window. "Width =" 646 "height =" 382 "src =". takes up more screen properties within the terminal window.

You can press "t" to switch CPU screens to simple ASCII graphs showing percentage usage for each CPU.

 top with ASCII diagram showing CPU workload, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this. onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

For each CPU, the top shows three digits a and the diagram. From left to right, the figures are as follows:

  • The combined us and ni percent (user space + data with non-normal fine settings).
  • sew percent (core space).
  • Total (rounded to an integer).

Press "t" again to change the graph display to solid block characters.

 top with ASCII block diagram showing CPU workload, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Press "t" again to completely remove the CPU display and the task overview bar.

 top with CPU and essay overview lines removed, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisi bleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Press "m" to cycle memory and change memory lines through various display options. The first press replaces the statistics with an ASCII chart.

 peak showing ASCII graphs for memory statistics, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1. JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); [amendmentsecondversion:”/> [59906] [amendment

 top showing ASCII block diagram for memory statistics, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages .loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Press "m" again to clear the CPU lines completely.

[1945] at the top with the memory and the switch lines are removed from the display, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static /1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); 1965933] see CPU and memory graphs simultaneously. Just press "t" and "m" until you get the combination you want.

<img class = "alignnone wp-image-669323 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x14-3 .png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.UAZe2gk65m.png "alt =" top with ASCII charts for CPU and memory, in one terminal window. "Width =" 646 "height =" 382 "src =" /pagespeed_static/1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); " onerror = "this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybelight1959] [56]

You can press" z "to add color to the display.

 at the top with a colored display, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.la .loadIfVisibleAndMaybeBeacon (this); up you probably don't think of colored screens and ASCII charts, but they are built in directly.

Press “y” to highlight run tasks in the process list. "X" is the column used to sort the process list. You can switch between bold and reverse text by pressing "b."

<img class = "alignnone wp-image-669337 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/xtop_17.png .pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.P7jZaO872c.png "alt =" at the top with run task and sorted column marked with reverse text, in a terminal window . "Width =" 644 "height =" 380 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMayingB5990; Columns

By default, the process list is sorted by the % CPU column. You can change the sort column by pressing the following:

  • P: The column % CPU .
  • M: Columns % MEM . [19659022] N: Columns PID .
  • T: Columns TIME + .

In the image below, the process list is sorted by PID column.

<img class = "alignnone wp-image-669340 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/xtop_20.png .pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.Idl8Y8QOpd.png "alt =" top with the process listed sorted by the PID column, in a terminal window. "Width =" 644 "height =" 380 "src =" / sidespeed_static / 1. JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoad (this); [19450033] [Fulldetails:"C"switchcommandcolumnbetweennightviewprocessnameandcompletecommandline

<img class = "alignnone wp-image-669359 size-full" data-pagespeed-lazy-src = "https://www.howtoge /wp-content/uploads/2020/04/x22-2.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.Negh7P7qQR.png "alt = "at the top showing the entire command line in the command column, in a terminal window. "Width =" 644 "height =" 380 "src =" / p agespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeB5900] "For processes started or created by other processes, press V.

See Processes for a Single User

Press" u "to see the processes for a single user. You will be asked for the name or UID.

 User query in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLofIages (this);

Write the name of the UID for the person you want to monitor. We type "dave" and hit "enter". Now the only processes in the task area belong to the user dave .

<img class = "alignnone wp-image-669367 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x24-2 .png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.FAhe0AErtu.png "alt =" which displays information for an individual user dave in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLof [this]] See only active data

Press I to see only active data.

<img class = "alignnone wp-image-669371 size-full" data-pagespeed-lazy-src = "https: //www.howtogeek.com/wp-content/uploads/2020/04/25-2.png "alt =" at the top showing only active information, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); The CPU since the last update will not be displayed.

Set how many processes to display

Press “n” to limit the display to a certain number of rows, regardless of whether the data is active. You will be asked to display the number of processes.

<img class = "alignnone wp-image-669376 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x33.png .pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.VSJD15dDf0.png "alt =" at the top of the number of rows to display in a terminal window. "Width = "646" height = "382" src = "/ sidespeed_static /1.JiBnMqyl6S.gif" onload = "sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);" onerror = "this.onerror = null; sidespeed.lazyLoadImages.load ; 19659 press]so ten processes are displayed in the task area.

 at the top shows ten processes in the task area, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S. gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

to end Ren00 Process the value ( priority) for a process. You are asked to enter the process ID. Just press Enter to use the process ID for the task at the top of the process window. We write 7800, which happens to be the process ID of an instance of Firefox.

<img class = "alignnone wp-image-669383 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x28-1 .png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.CB5vHigK-z.png "alt =" which is called to the process ID of a process, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); " onerror = "this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon 1966 press Enter, you are prompted to apply the new nice value to the process. We type 15 and then press Enter.

<img class =" alignnone wp -image-669384 size-full "data-pagespeed-lazy-src =" https://www.howtogeek.com/wp-content/uploads/2020/04/x29-1.png.pagespeed.gp+jp+jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.6FGMO5VxJF.png "alt =" and sets a process to a fine value of 15 in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1. JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); [19450033] the new process: immediately.

RELATED: How to set process priorities With nice and renice on Linux

Kill a process

Press "k" to kill a process. You will then be asked for the process ID you want to kill. In fact, you can send any signal to the process. We will kill process 7879, which has stopped responding.

<img class = "alignnone wp-image-669385 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x31.png .pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.k3uhnwac4F.png "alt =" up to a process ID, in a terminal window. "Width = "646" height = "382" src = "/ sidespeed_static / 1. JiBnMqyl6S.gif" onload = "sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);" onerror = "this.onerror = null; sidespeed.lazyLoadImages ; [19450033] type the signal you want to send. You can enter it by name or number. If you simply press Enter, top sends SIGTERM (kill) signal. [19659006]  top requesting a signal to send, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this ); "onerror =" this.onerror = null; sidespeed.lazyLoadImisAndraFr ee

As soon as you press Enter, the signal is sent to the process.

RELATED: How to kill processes from the Linux terminal

Customize the display

You can also customize the colors and columns displayed. We will change the color used for the promp, the default of which is red.

<img class = "alignnone wp-image-669455 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x35-1 .png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.LszLiZtIav.png "alt =" at the top that shows a bright red prompt, in a terminal window. " Width = "646" height = "382" src = "/pagespeed_static/1.JiBnMqyl6S.gif" onload = "sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);" onerror = "this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBasecon [196] to go to the color settings page. The upper part of the screen shows the colors used by the different display elements. To indicate which display element you want to change, press any of the following, which are case sensitive:

  • S : Summary Data area.
  • M : Messages and instructions
  • H : Column headings.
  • T : in the process list.

We press M to change the instructions.

 top color setting page with option M selected, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.laagesLoLad .loadIfVisibleAndMaybeBeacon (this); color, press one of the following numbers:

  • 0: Black.
  • 1: Ed.
  • 2: Green.
  • 3: Yellow.
  • 4: Blue.
  • 5: Magenta.
  • 6: Cyan.
  • 7: White.

We press 6 to use cyan.

 top color setting window with color 6 selected, in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Press Enter to save your settings. The input questions will now be in the color of your choice.

 at the top with a cyan prompt, in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S. gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

We can also change the fields in the fields screen. Press F to open the Field Management screen.

 at the top and shows the field management screen in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Fields displayed [a) next to them and marked in bold. Press the up and down arrows to move the highlight through the list of fields.

If you move the selection from the bottom of one column, it will appear at the top of the next (unless you are at the bottom of the last column). If you move it from the top of a column, it will appear at the bottom of the previous one (unless you are at the top of the first column).

We moved the highlight to the COMMAND entry and then pressed "d" to remove the asterisk ( * ). We then moved to the entry UID and pressed “d” to place an asterisk next to the entry. This means that the COMMAND column will not be displayed, but the UID column will appear.

 at the top shows the field management screen with the UID column selected in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadIages. loadIfVisibleAndMaybeBeacon (this);

While the highlight is in the UID column, we press "s" to sort the process list in the column UID .

 from above showing the field management screen with the UID column set as sort column in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed .lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this);

Press Enter to save your settings, then press “q” to exit the Field Management screen.

<img class = "alignnone wp-image-669462 size-full" data-pagespeed-lazy-src = "https://www.howtogeek.com/wp-content/uploads/2020/04/x43.png .pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.SjV4fJ5klL.png "alt =" at the top of the UID column is displayed, and set as sort column in a terminal window. "width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed .loadIfViseacon600 [this]] The column UID has replaced the column COMMAND and the process list is sorted by it.

Alternative display mode

This works best in full screen mode. four areas in the process list and then press "a" to move from area to area.

<img class = "alignnone wp-image-669465 size-full" data-pagespeed-lazy-src = "https: // www.howtogeek.com/wp-content/uplo ads / 2020/04 / x44.png.pagespeed.gp + jp + jw + pj + ws + js + rj + rp + rw + ri + cp + md.ic.x3yJWDJErs.png "alt =" at the top of the alternative display activated in a terminal window. "Width =" 646 "height =" 382 "src =" / sidespeed_static / 1.JiBnMqyl6S.gif "onload =" sidespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon (this); "onerror =" this.onerror = null; sidespeed.lazyLoadImages.loadIfViseacon600 [this]] Each area has a different collection of columns, but all can also be customized through the field management screen. This gives you space to have a full-screen, customized display that displays different information in each area and the ability to sort each area by a different column.

Other Keystrokes

The following are some other buttons that you may find useful in top :

  • W : Save your settings and customizations so they will still apply when you the next one starts top .
  • d : Set a new refresh rate for the screen.
  • Space : Force top to refresh its display right now.

Top Banana

As we have seen, top has quite a repertoire. Other programs, like htop have been inspired by it, but they all have their own stuff. However,

top is installed everywhere. When you go to companies to look at networks or servers, you are often told that nothing can change on the live servers. The client makes the rules, so you must use what is already installed.

Even if you prefer another monitoring tool, you should get to know top . Sooner or later you will probably find yourself in a situation where that is all you have access to.




Source link