Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the nice command of linux to adjust the priority of the process

Shulou Source: shulou.com Published: 2022-06-02 14:44:53 11月02日 Update

Xiaobian to share with you the use of linux nice command to adjust the priority of the process, I believe most people still do not know how to share this article for everyone to learn, I hope you read this article after a big harvest, let us learn the method together!

Nice is used to adjust the execution priority of the process, nice command indicates that the new execution command is given a new nice value. In the background work of the system, some relatively unimportant processes are running, such as backup. Since backup work consumes system resources, you can increase the nice value of the backup command at this time, which can make the system resources more reasonable.

Syntax format: nice [parameter] [command]

Common parameters:

-n followed by a value in the range-20 to 19

Reference Example

Give a nice value of-5 with root to execute vi and see the process:

[root@localhost ~]# nice -n -5 vi & above is all about using linux nice command to adjust process priority, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Commands processes priorities adjustments backups systems learning content parameters resources work important not so much can make background most learning methods examples commonly used numerical values Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Redmi Huawei Shulou Tech Info