Detailed explanation of PS command in Linux

xiaoxiao2021-04-05  269

Name: PS

Use permission: All users

How to use: ps [options] [--help]

Description: Show the dynamics of the moment

parameter:

There are a lot of PS parameters, and only several common parameters are listed here and

-A lists all itinerary

-W Display widened can display more information

-au shows more detailed information

-AUX shows all strokes that contain other users

Au (x) output format:

User PID% CPU% MEM VSZ RSS TTY Stat Start Time Command

User: Tour owner

PID: PID

% CPU: Used CPU usage

% MEM: Occupation Memory Use

VSZ: The size of the virtual memory occupied

RSS: The size of the memory

TTY: The secondary device number of the terminal (Minor Device Number Of TTY)

Stat: The status of this trip:

D: I / O action in uninterrupted still (通 □ □ 缜 B)

R: is being executed

S: Static state

T: Pause

Z: No existence but temporarily unable to eliminate

W: There is not enough memory paging to allocate

<: High priority stroke

N: low priority stroke

L: There is a memory paging assignment and lock in memory (instant system or A I / O)

START: Time of the trip

Time: Time to do

Command: Directive executed

example:

PS

PID TTY TIME CMD

2791 TTYP0 00:00:00 TCSH

3092 TTYP0 00:00:00 PS

% PS -A

PID TTY TIME CMD

1? 00:00:03 init

2? 00:00:00 Kflushd

3? 00:00:00 Kpiod

4? 00:00:00 Kswapd

5? 00:00:00 MDRECoveryd

.......

% PS -AUX

User PID% CPU% MEM VSZ RSS TTY Stat Start Time Command

Root 1 0.0 0.7 1096 472? S Sep10 0:03 init [3]

Root 2 0.0 0.0 0 0? SW SEP10 0:00 [KFLUSHD]

Root 3 0.0 0.0 0 0? SW SEP10 0:00 [KPIOD]

Root 4 0.0 0.0 0 0? SW SEP10 0:00 [KSWAPD]

........

转载请注明原文地址:https://www.9cbs.com/read-132096.html

New Post(0)