Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Important commands related to the process management of learning notes

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report