Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Important commands related to the process management of learning notes

Shulou Source: shulou.com Published: 2022-06-01 03:56:35 10月06日 Update

Ps,top,htop,dstat of process management commands

Ps:report a snapshot of the current processes.

Displays the status of the current process

Syntax: ps [options]

There are three styles of options:

1 、 UNIX options, which may be grouped and must be

Preceded by a dash.

2 、 BSD options, which may be grouped and must not

Be used with a dash.

3 、 GNU long options, which are preceded by two

Dashes.

Ps option option:

A: all terminal-related processes

X; all processes independent of the terminal

U: user-centered organization process status information display

Note: the above options do not have "-", and the results are not the same if you add "-".

One of the common combinations: aux

The meaning of the field in ps aux:

USER: user

PID; process number

% CPU: cumulative cpu occupancy

% MEM:% of total memory

VSZ: virtual memory set

RRS:resident size resident memory set (never put on swap partition)

STAT: process statu

R:running running state

S:interruptable sleeping interrupts sleep

D: uninterrupted sleep

T:Stoped stop state

Z: stiff state

+: foreground process (running on the terminal)

L: multithreaded process

N: low priority proc

Tags: Process command information data memory common statistics statistics sort priority time status percentage combination field user percentage terminal run hierarchy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Microsoft OPPO Reno Huawei