In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to view the progress of Linux", the content of the explanation is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "how to view the process of Linux" bar!
The ps ax command displays a list of current system processes, including processes owned by other users. To display processes and their owners, use the ps aux command. The list is a static list; in other words, it is a snapshot of the process that was running when you enabled this command. If you need Linux to see a list of running processes that are updated at a time, use the top command described below.
The output of the Linux view process ps can be very long. To prevent it from slipping quickly across the screen, you can pipe it to the less command:
Ps aux | less
You can use Linux to view the combination of the ps command and the grep command to see if a process is running. For example, to determine whether Emacs is running, use the following command:
Ps ax | grep emacs
The Linux View processes top command shows the currently running processes and important information about them, including their memory and CPU usage. The list is both real-time and interactive. An example of the output of top is provided below:
19:11:04 up 7:25, 9 users, load average: 0.00, 0.05, 0.12
89 processes: 88 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpuusernice systemirq softirq iowaitidle
Total6.6%0.0%0.0%0.0% 0.0% 0.08% 192.8%
Cpu006.7%0.0%0.1%0.1% 0.0% 0.0% 92.8%
Cpu010.0%0.0%0.0%0.0% 0.0% 0.00% 100.0%
Mem: 1028556k av, 241972k used, 786584k free,0k shrd,37712k buff
162316k active, 18076k inactive
Swap: 1020116k av,0k used, 1020116k free99340k cached
PID USER PRI NI SIZE RSS SHARE STAT CPU MEMTIME CPU COMMAND
1899 root 150 17728 12M 4172 S 6.5 1.2 111:200 X
6380 root 150 1144 1144884 R 0.3 0.10:000 top
1 root 150488 488432 S 0.0 0.00:051 init
2 root RT0 000 SW0.0 0.00:000 migration/0
3 root RT0 00 0 SW0.0 0.00:001 migration/1
4 root 150 000 SW0.0 0.00:000 keventd
5 root 34 19 000 SWN0.0 0.00:000 ksoftirqd/0
6 root 34 19 00 0 SWN0.0 0.00:001 ksoftirqd/1
9 root 250 000 SW0.0 0.00:000 bdflush
7 root 150 00 0 SW0.0 0.00:001 kswapd
8 root 150 00 0 SW0.0 0.00:001 kscand
10 root 150 00 0 SW0.0 0.00:011 kupdated
11 root 250 000 SW0.0 0.00:000 mdrecoveryd
To exit top, press the [Q] key.
Interactive commands that can be used with the Linux viewer process top include:
Command description
[Space] refresh the display immediately
[h] display the help screen
[K] kill a process. You will be prompted to enter the process ID and the signal to send to it.
[n] change the number of processes to display. You will be prompted to enter the quantity.
[U] sort by user.
[M] sort by memory usage.
[P] sorted by the amount of CPU.
Thank you for your reading, the above is the content of "how to view the process of Linux", after the study of this article, I believe you have a deeper understanding of how to view the process of Linux, the specific use of the situation also 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.