Tech Junkie Blog - Real World Tutorials, Happy Coding!: Linux Performance: top Command

Monday, May 9, 2022

Linux Performance: top Command

 The top command is an essential tool in any Linux administrator's toolbelt.  Let's take a deeper look at the command.

First thing you can do is get the version of top we are using

[root@cent7 jhuynh]# top -v
  procps-ng version 3.3.10
Usage:
  top -hv | -bcHiOSs -d secs -n max -u|U user -p pid(s) -o field -w [cols]

If you just type top with no options you will get the following information, the information will update every 3 seconds by default.  The top area is a summary of resources and CPU usage while the bottom portion are information about the processes.  The information is sort by CPU utilization by default.









Press q to quit, you can also run the top command in batch mode by specifying how many times you want it to run by typing the command like this top -b -n1 the command uses the -b option for batch and -n for the number of iterations, in this case it's one

As you can see it only runs once and you get your prompt back, you use your mouse to scroll back up. You can also write the results to a file like this top -b -n1 > top-stats






8 comments:

  1. The ultimate goal is to be the longest snake on the entire board and take down as many Snakes io as you can.

    ReplyDelete
  2. https://decorbest-en.com/black-couch-living-room-ideas-2022-best-decor-ideas/

    ReplyDelete
  3. ทดลองเล่นสล็อต Pg เว็บ ตรง เป็นผู้ให้บริการเกมพร้อมให้ผู้เล่นทุกคนได้รับโบนัสทดสอบเล่นสล็อต pg ฟรี 2022แล้ววันนี้ ที่นี้ที่เดียวทุกท่าน ได้เล่นได้ก่อนผู้ใดเข้าเล่นได้เลย

    ReplyDelete
  4. ฟรีเครดิต กดรับเองหน้าเว็บไซต์ปัจจุบัน pg slot รับไปเลยเครดิตให้เล่นฟรี 100 บาท ให้ท่านสามารถทดสอบรับเครดิตฟรีกดรับเอง ก็ได้ของ PG SLOT เว็บไซต์ตรงของเรา pg-slot.game

    ReplyDelete
  5. พี จี สล็อต: พื้นฐานที่ต้องรู้ (PG SLOT) เป็นเกมคาสิโนออนไลน์ที่ให้การจำลองสถานการณ์และประสบการณ์ของคาสิโนที่มีชื่อเสียง ในรูปแบบ PG SLOT

    ReplyDelete
  6. The ultimate goal is to be the longest snake on the entire board and take down as many Snakes io as you can. Gold Prices

    ReplyDelete

Search This Blog