Linux command: Ps/top

Source: Internet
Author: User

Introduction:ps-report A snapshot of the current processes.

Purpose: get the current program running state

Overview:PS [Options]

type:PS is hashed (/BIN/PS)

Description

PS gets static information about the state of the program at a given moment, and if you want to get program run information dynamically, you can use the top command.

PS Help document too much information, remember the two commonly used:

PS -l  # lists only programs related to the user's current bash, that is, the current bash program is the top parent program of other programs PS aux  # lists system All Programs

Introduction:top-display Linux processes

Purpose: get program running status in real time

Summary:top-hv|-bchioss-d secs-n max-u| U user-p pid-o fld-w [cols]

type:top Is/usr/bin/top

Description

Dynamic Get program running state, information will be automatically refreshed frequently.

Parameters:

-D: followed by a number, how long the interval is refreshed, in seconds.

-P: After the program PID, specify the detection program.

The commands that can be manipulated during top execution:

P: Sort display by cup usage (%CPU).

M: Sorted by Memory Utilization (%MEM).

N: Sort the display by PID.

T: Sort by CPU cumulative usage time (time+)

Q: Leave Top program.

Linux command: Ps/top

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.