Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view system information and process status by linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to check the system information and process status of linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

You can use the top command to view the running status of systems and processes under linux.

Top command is a commonly used performance analysis tool under Linux, which can display the resource consumption of each process in the system in real time, similar to the task manager of Windows.

Use format:

Top [-] [d] [p] [Q] [c] [C] [S] [s] [n]

Parameter description:

D: specifies the time interval between every two screen information refreshes. Of course, the user can use the s interactive command to change it.

P: monitor only the status of a process by specifying the monitoring process ID.

Q: this option will allow top to refresh without any delay. If the caller has superuser privileges, top will run at the highest possible priority.

S: specifies the accumulation mode.

S: make the top command run in safe mode. This removes the potential danger of interactive commands.

I: make top not show any idle or dead processes.

C: displays the entire command line instead of just the command name.

The internal commands are as follows:

S-change the screen update frequency

L-turns off or turns on the representation of top information on the first line of the first part

T-turn off or turn on the representation of the first part, the second line Tasks and the third line Cpus information

M-turns off or turns on the presentation of the first part, line 4 Mem and line 5 Swap information

N-represents the list of processes in order of PID size

P-sorts the list of processes in the order of CPU occupancy

M-sorts the list of processes in order of memory footprint

H-Show help

N-sets the number of processes displayed in the process list

Q-exit top

S-change the screen update cycle

On the linux to view system information and process status methods to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report