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 > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the use of Linux's top command". The editor shows you the operation process through an actual case, the operation method is simple and fast, and it is practical. I hope this article "what is the use of Linux's top command" can help you solve the problem.
The commonly used Linux command top command can view the overall operation of the system in real time and dynamically. It is a practical tool that integrates multi-party information to monitor the performance and operation information of the system. It can be managed with hotkeys through the interactive interface provided by the top command.
Top displays or manages programs in execution
Syntax top (option) option-b: operate in batch mode;-c: display the full governance command;-d: screen refresh interval;-I: ignore failure process;-s: secret mode;-S: cumulative mode;-I: set interval time;-u: specify user name;-p: specify process;-n: number of loops. Top interactive commands some of the interactive commands that can be used during the execution of top commands. These commands are single-letter, and some of them may be masked if the-s option is used on the command line.
H: display the help screen, give some brief command summary instructions; k: terminate a process; I: ignore idle and dead processes, which is a switch command; Q: exit the program; r: reschedule a process's priority; S: switch to cumulative mode; s: change the delay time between two refreshes (in s), if there is a decimal, convert it to ms. Enter a value of 0 and the system will continue to refresh, with a default value of 5s; f or F: add or remove items from the current display; o or O: change the order of items displayed; l: switch display average load and startup time information; m: switch display memory information; t: switch display process and CPU status information; c: switch display command name and full command line; M: sort according to resident memory size P: sort by CPU usage percentage; T: sort by time / cumulative time; w: write the current settings to the ~ / .toprc file. Instance top-09:44:56 up 16 days, 21:23, 1 user, load average: 9.59,4.75,1.92 Tasks: 145total, 2 running, 143sleeping, 0 stopped, 0 zombie Cpu (s): 99.8%us, 0.1%sy, 0.0%ni, 0.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4147888k total, 2493092k used, 1654796k free 158188k buffers Swap: 5144568k total, 56k used, 5144512k free, 2013180k cached explain:
Top-09:44:56 [current system time]
16 days [the system has been running for 16 days]
1 user [users currently logged in]
Load average: 9.59,4.75,1.92 [system load, that is, average task queue length]
Tasks: 145 total [total number of processes]
2 running [number of processes running]
143 sleeping [number of sleep processes]
0 stopped [number of processes stopped]
0 zombie [number of frozen processes]
Cpu (s): 99.8%us [percentage of CPU occupied by user space]
0.1%sy [percentage of CPU occupied by kernel space]
0.0%ni [percentage of CPU occupied by processes that have changed priority in user process space]
0.2%id [percentage of idle CPU], 0.0%wa [percentage of CPU time waiting for input and output]
0.0%hi []
0.0%st []
Mem: 4147888k total [total physical memory]
2493092k used [total physical memory used]
1654796k free [total free memory]
158188k buffers [amount of memory used as kernel cache]
Swap: 5144568k total [total exchange area]
56k used [total number of switching areas used]
5144512k free [total free exchange area]
2013180k cached [total number of buffered switching areas]
This is the end of the content about "what is the use of Linux's top command". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.