Usage of ps commands in linux

Source: Internet
Author: User
The usage of the ps command in linux indicates that in linux, you can use the ps command to check the running and running statuses of processes, whether the processes are completed, whether the processes are botnets, and which processes are occupying excessive resources. and so on. ps commands are most commonly used to monitor the working conditions of background processes. name: psww...
The usage of the ps command in linux indicates that in linux, you can use the ps command to check the running and running statuses of processes, whether the processes are completed, whether the processes are botnets, and which processes are occupying excessive resources. and so on. ps commands are most commonly used to monitor the working conditions of background processes. name: ps www.2cto.com permission: all users usage: ps [options] [-- help] description: displays the dynamic parameters of the process: there are many ps parameters, only A few common parameters are listed here and their meanings are briefly described.-A lists all the Itineraries.-w: show widening. More information is displayed.-au: show more details.-aux: show all other parameters. user's itinerary au (x) output Format: user pid % CPU % mem vsz rss tty stat start time commanduser: Travel owner PID: pid % CPU: occupied CPU usage % MEM: occupied memory usage VSZ: large virtual memory occupied Small RSS: memory usage TTY: terminal secondary device number (minor device number of tty) STAT: Status of the trip: D: non-disruptive static (I/O action performed by □□ B) R: in progress www.2cto.com S: static status T: paused execution Z: nonexistent but cannot be eliminated for the moment W: there is not enough memory paging to allocate <: high-priority stroke N: low-priority stroke L: memory is allocated by Page and locked in the memory (instant system or memory a I/O) START: Stroke START TIME: execution TIME COMMAND: executed COMMAND example: 1) ps a shows all programs under the current terminal, including those of other users. 2) ps-A shows all programs. 3) when listing programs in ps c, the real command name of each program is displayed without the path, parameter or resident service identifier. 4) the effect of this parameter is the same as that of the specified "A" parameter. 5) when listing programs, ps e displays the environment variables used by each program. 6) ps f uses ASCII characters to display the tree structure and express the relationship between programs. 7) the ps-H tree structure is displayed, indicating the relationship between programs. 8) ps-N shows all programs, except the programs under the ps command terminal. 9) ps displays the program status in the program signal format. 10) when listing programs in ps, it includes interrupted subroutines. 11) ps-t <终端机编号> Specify the terminal number and list the status of the program that belongs to the terminal. 12) ps u displays the program status in user-based format. Www.2cto.com 13) ps x displays all programs, which are not distinguished by terminals.
The most common method is ps-aux. then, a pipeline symbol is used to direct to grep to find a specific process and then operate on the specific process. Author feihan21
Related Article

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.