Linux-ToolKit-procps
2019-11-28 11:24:26 阿炯

procps全称为procps-ng: System and process monitoring utilities(/proc 文件系统工具)

此软件包提供了命令行和全屏实用程序用于浏览 procfs,该伪文件系统由内核动态生成,以提供进程表中条目状态的相关信息(例如进程是否在运行、停止或僵死)。它包含了 free, kill, pkill, pgrep, pmap, ps, pwdx, skill, slabtop,snice, sysctl, tload, top, uptime, vmstat, w, watch 等指令,有些可能要用root用户才能执行。


procps is a set of command line and full-screen utilities that provide information out of the pseudo-filesystem most commonly located at /proc.This filesystem provides a simple interface to the kernel data structures.The programs of procps generally concentrate on the structures that describe the processess running on the system.The following programs are found in procps:

free
Report the amount of free and used memory in the system
报告系统中空闲和使用的内存容量(包括物理和交换内存)

kill
Send a signal to a process based on PID
根据名称和其它属性给进程发送信号

pgrep
List processes based on name or other attributes
根据名称和其它属性查找进程

pkill
Send a signal to a process based on name or other attributes
根据名称和其它属性给进程发送信号

pmap
Report memory map of a process
报告指定进程的内存映射情况

ps
Report information of processes
列出正在运行的进程

pwdx
Report current directory of a process
报告进程的当前工作目录

slabtop
Display kernel slab cache information in real time
实时显示内核 slab 缓存信息

snice
Renice a process
调整进程运行的运行优先级

sysctl
Read or Write kernel parameters at run-time
运行时修改内核参数

tload
Graphical representation of system load average
打印当前系统平均负载曲线图

top
Dynamic real-time view of running processes
显示最 CPU 密集型进程列表,它可以实时地连续查看处理器活动

uptime
Display how long the system has been running
报告系统运行时长、登录用户数目以及系统平均负载

vmstat
Report virtual memory statistics
报告虚拟内存统计信息、给出关于进程、内存、分页、块输入/输出(IO)、中断陷阱以及 CPU 活动的信息

w
Report logged in users and what they are doing
显示当前登录的用户、以及登录地点和时间

watch
Execute a program periodically, showing output fullscreen
重复运行指定命令,显示输出的第一个整屏;这允许用户查看随着时间的输出变化

libprocps
包含该软件包大部分程序使用的函数

项目主页:https://gitlab.com/procps-ng/procps