In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the usage of the Linux basic command nice". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of the Linux basic command nice".
Nice
The nice instruction can set the priority of running the program, and the priority will affect the scheduling time of the program. The range of nice is-20 to 19, where-20 is the highest and 19 is the lowest.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Nice [options] [cmd]
2. List of options
Option
Description
-- help
Show help documentation
-- version
Show command version
-n |-- adjustment=N
Set priority
3. Examples
1) set instruction wc priority
[root@localhost ~] # nice-n 19 wc / / sets the lowest priority for wc
^ Z / / Press the key combination ctrl+z
[2] + Stopped nice-n 19 wc
[root@localhost ~] #
2) View process priority
[root@localhost ~] # ps-ao "% p%y%x%c%n" / / View process level, wc level is 19
PID TTY TIME COMMAND NI
8321 pts/0 00:00:00 wc 19
8370 pts/0 00:00:00 ps 0
Thank you for your reading, the above is the content of "the usage of the Linux basic command nice". After the study of this article, I believe you have a deeper understanding of the usage of the Linux basic command nice, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.