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 is to share with you what the command for Linux to check the status of the process is, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
In the Linux system, if you want to view processes that include other users, and PID,CPU share, memory usage, running status, etc., you can use the ps command, the ps command to display the status of the current process, similar to windows's task manager.
The psps command is an abbreviation for "process status", and the ps command is used to display the process status of the current system. You can interrupt and delete unnecessary programs at any time with kill instructions.
Ps command is the most basic but also very powerful process view command, which can be used to determine which processes are running and running status, whether the process ends, whether the process is dead, which processes take up too much resources, and so on. In short, most of the information can be obtained by executing the command.
Syntax ps [options] [parameters]
Option-A: list all itineraries (procedures performed)-w: show widening to display more information-au: show more detailed information-aux: show all journeys that include other users au (x): output format: USER PID% CPU% MEM VSZ RSS TTY STAT START TIME COMMAND USER: itinerary owner PID: pid% CPU: occupied CPU usage% MEM: occupied Memory usage VSZ: virtual memory size occupied RSS: occupied memory size TTY: secondary device number of the terminal (minor device number of tty) STAT: state of the stroke: d: uninterruptible rest (palpitation □□ / b performs I / G O action) R: in progress S: rest state T: pauses execution Z: does not exist but cannot be eliminated temporarily Except W: there are not enough memory pages to allocate-U: list the status of programs belonging to the user It can also be specified with a user name, and the-u option is the same as-U
Common examples for ps commands, although there are many parameters, only a few parameters are commonly used, and other parameters are rarely used.
Display root user process information
[root@linus ~] # ps-u root [root@linus ~] # ps-U root 12 displays all process information
[root@linus ~] # ps-aux # with output format [root@linus ~] # ps-A # No output format 12 displays all commands, together with the command line
[root@linus] # ps-ef above is what the Linux command is to check the status of the process. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.