Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet227/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   223   224   225   226   227   228   229   230   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 171 
]
Now that is useful! With that example, I'm using the 
ps aux
 command with the 
--sort
 option, sorting by the percentage of CPU utilization (
-pcpu
). Then I'm piping 
the output into the 
head
 command, where I'm instructing it to show me only five 
lines (
-n 5
). Essentially, this is giving me a list of the top five processes that have 
used the most CPU since boot time. In fact, I can do the same, but with the most-used 
memory instead:
ps aux --sort=-pmem | head -n 5 
If you want to determine which processes are misbehaving and using a non-ordinary 
amount of memory or CPU, those commands will help you narrow it down. The 
ps
 
command is a very useful command for your admin toolbox. Feel free to experiment 
with it beyond the examples I've provided; you can consult the man pages for the 
ps
 
command to learn even more tricks. In fact, the second section of the man page for 
ps
 
(under examples) gives you even more neat examples to try out.
Now that we know how to inspect running processes, in the next section we'll take 
a look at how to change the priority of the processes to ensure those that are more 
important are given extra attention by the CPU.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   223   224   225   226   227   228   229   230   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish