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






17 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
  7. عطر بيرلاعطر بيرلا للجنسين من متجر شيت

    ReplyDelete
  8. العناية المنزلية العناية المنزلية من متجر كيوت كار

    ReplyDelete
  9. جلابةاكتشفي تشكيلتنا الواسعه من الجلابة المغربية بالوان واشكال متعددة

    ReplyDelete
  10. الاطقمالجمال والأناقة ليسا فقط مجرد كلمتين بل هما تعبير عن طريقة حياة، ولكن مع طقم فضة كامل يمكنك أن تجسد هذه القيم بأسلوب متفرد و لامثيل له. إنه الخيار المثالي للنساء اللواتي يبحثن عن الأناقة الراقية والتصميم الفريد الذي يجمع بين الجمال

    ReplyDelete
  11. بخاخ مثبت للشعر احصلي على تسريحة شعر تدوم طوال اليوم مع بخاخ مثبت للشعر من قوت تو بي شوارزكوف يتميز بتركيبة قوية توفر ثباتاً طويلاً دون أن تثقل الشعر، مما يجعله الخيار المثالي للتسريحات المختلفة بسعر مناسب من متجر اورا .

    ReplyDelete
  12. متجر سناكات صحيةسناكات صحية خالية من السكر

    ReplyDelete
  13. جلسات العلاج الطبيعي العلاج الطبيعي هو تخصص طبي يهدف إلى استعادة وتحسين وظائف الجسم والحركة بعد الإصابات أو الأمراض أو العمليات الجراحية.

    ReplyDelete
  14. دبابات اطفالاكتشف احدث تشكيلة من دبابات اطفال بتصاميم مبتكرة وامان

    ReplyDelete
  15. the-sbo หนึ่งในเว็บพนันออนไลน์ ที่ทำให้นักพนันทุกท่าน ได้รับสิ่งที่ดีที่สุด นั่นเอง

    ReplyDelete

Search This Blog