Linux Command ps aux | grep xxx

Source: Internet
Author: User

Linux Command ps aux | grep xxx detailed description to monitor and control the Process, the first must understand the current Process, that is, to view the current Process, and ps command (Process Status) is the most basic and very powerful process view command. you can use this command to determine which processes are running and running, whether the processes are finished, whether the processes are botnets, and which processes are occupying excessive resources. in short, most of the information can be obtained by executing this command. ps provides a one-time View of the process. The results are not dynamically consecutive. To monitor the process time, use the top tool. If you use the ps command directly, the status of all processes is displayed. Generally, you can use the grep command to view the status of a process. Grep (global search regular expression (RE) and print out the line, full search for regular expressions and print out rows) is a powerful text search tool, it can use regular expressions to search for text and print matching rows. Example: [root @ node20 updateDB] # ps aux | grep./update_stockroot 14232 0.0 0.0 5928 724 pts/1 S + grep./update_stockroot 25021 0.0 0.0 3056 816? S Apr12 0: 03. /update_stock ps aux output format: user pid % CPU % mem vsz rss tty stat start time command Format Description: USER: Travel owner PID: pid % CPU: occupied CPU usage % MEM: occupied memory usage VSZ: occupied virtual memory size RSS: occupied memory size TTY: terminal secondary device number (minor device number of tty) STAT: status of the trip, linux processes have five statuses: D cannot be interrupted. uninterruptible sleep (usually IO) R runs runnable (on run queue) S interrupts sleepingT to stop traced or stoppedZ freezes a defunct ("zombie ") process Note: other statuses include W (no resident page), <(high-priority process), N (low-priority process), and L (Memory Lock page ). START: start time of the trip TIME: execution time command: executed COMMAND

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.