In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to use the top command of Linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Linux common commands top commands are used to display the dynamics of process in real time.
Syntax top [-] [d delay] [Q] [c] [S] [s] [I] [n] [b] parameter description:
D: change the update speed of the display, or press s in the conversational instruction line (interactive command)
Q: there is no delay in the display speed. If the user has the permission of superuser, top will be executed in the highest priority.
C: switch display mode, there are two modes, one is to display only the name of the execution file, and the other is to display the full path and name
S: cumulative mode, which accumulates the CPU time of completed or missing subjourneys (dead child process)
S: safe mode, cancel conversational instructions to avoid potential crisis
I: do not show any idle (idle) or useless (zombie) itinerary
N: the number of updates. After completion, you will exit top.
B: batch file mode, used with the "n" parameter, can be used to output the results of top to the file
Instance displays process information
# top displays complete commands
# top-c displays program information in batch mode
# top-b displays program information in cumulative mode
# top-S sets the number of information updates
Top-n 2max / indicates that the update time of display setting information is terminated after updating twice.
# top-d 3 beat / indicates that the update period is 3 seconds to display the specified process information
# top-p 139amp / displays the process information with process number 139, CPU, memory occupancy, etc. show ten updates and then exit
Top-n 10 users will not be able to use conversational instructions to command the stroke
This is the end of top-s "how to use Linux's top commands". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.