Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet232/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   228   229   230   231   232   233   234   235   ...   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)

[
 175 
]
That command sets the nice value of the process to a positive 10, similar to our other 
examples. We can also use a negative number for the niceness if we want to increase 
the priority:
sudo renice -10 42467
Although it doesn't save us much typing to leave out the 
-n
 option, now you know 
that it is a possibility. The other difference with that example was that I needed to 
use 
sudo
 since I'm decreasing the nice value (more on that later).
When it comes to the 
nice
 command, we can also leave out the 
-n
 option, but the 
command works a bit differently in this regard. The following won't work:
nice 15 vim
The syntax of 
nice
 is a bit different, so giving it a positive number directly won't 
work as it does with 
renice
. For that, we'll need to add a hyphen in front:
nice -15 vim
When you look at that command, you may assume we're applying a negative 
number. Actually, that's not true. Since the syntax is different with 
nice
, the 
-15
 
value we used results in a positive 15. We needed the hyphen in front of the value 
to signify to 
nice 
that we're applying a value as an option. If we actually do want to 
use a negative value with 
nice
 while also avoiding the 
-n
 option, we would need to 
use two hyphens:
nice --10 vim
The difference with syntax between the two commands with the 
-n
 option is a bit 
confusing in my opinion, so I recommend simply using the 
-n
 option with 
nice
 and 
renice
, as that's going to be more uniform between them:
nice -n 10 vim
sudo nice -n -10 vim
renice -n 10 42467
sudo renice -n -10 42467


Controlling and Managing Processes

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   228   229   230   231   232   233   234   235   ...   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