Linux CentOS 8 查看系统进程信息

简介: 系统进程信息; CPU 占用率; 内存占用率;
查看 top man
#man top information
$man top 
NAME
       top - display Linux processes

SYNOPSIS
       top -hv|-bcEHiOSs1 -d secs -n max -u|U user -p pid -o fld -w [cols]

       The traditional switches `-' and whitespace are optional.

DESCRIPTION
       The top program provides a dynamic real-time view of a running system.  It can display system summary information as well as a list of pro‐
       cesses or threads currently being managed by the Linux kernel.  The types of system summary information shown and the types, order and size
       of information displayed for processes are all user configurable and that configuration can be made persistent across restarts.

       The  program provides a limited interactive interface for process manipulation as well as a much more extensive interface for personal con‐
       figuration  --  encompassing every aspect of its operation.  And while top is referred to throughout this document, you are  free  to  name
       the program anything you wish.  That new name, possibly an alias, will then be reflected on top's display and used when reading and writing
       a configuration file.
查看top -h
[arthur@localhost ~]$ top -help
  procps-ng 3.3.15
Usage:
  top -hv | -bcEHiOSs1 -d secs -n max -u|U user -p pid(s) -o field -w [cols]
查看系统进程动态信息
#example: 
$top
top - 11:55:48 up 14:34,  1 user,  load average: 0.54, 0.30, 0.13
Tasks: 276 total,   2 running, 274 sleeping,   0 stopped,   0 zombie
%Cpu(s):  3.1 us,  1.5 sy,  0.0 ni, 94.8 id,  0.0 wa,  0.4 hi,  0.2 si,  0.0 st
MiB Mem :   9356.3 total,   4824.7 free,   1896.4 used,   2635.2 buff/cache
MiB Swap:   4848.0 total,   4848.0 free,      0.0 used.   6934.0 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                        
   2887 arthur    20   0 4487204 204476 109484 S   6.0   2.1   0:59.54 gnome-shell                                                                    
   1021 root     -51   0       0      0      0 D   3.3   0.0   0:10.28 irq/37-rmi4_smb                                                                
   3670 arthur    20   0  767400  50208  36212 S   2.7   0.5   0:09.45 gnome-terminal-                                                                
  32549 arthur    20   0   16.8g 108524  74992 S   2.7   1.1   0:07.81 chrome                                                                         
  32719 arthur    20   0   20.8g 216424 130188 S   2.7   2.3   0:17.09 chrome                                       
注释:
PID (Process ID) : 进程标识号 ; USER: 进程使用者; PR(Priority):优先级别,数值越小优先级越高; NI (Nice): Nice value of task. 优先级别数值(数值越小越先执行); VIRT : 进程占用的虚拟内存值; RES : 进程占用的物理内存值; SHR : 进程使用的共享内存值; S : 进程状态(S : sleep; D: 不可中断睡眠状态; R : 正在运行 ); %CPU : 进程占用的CPU 使用率; %MEM : 进程占用物理内存的百分比 ; TIME+ : 进程启用后占用的CPU 时间
其他:

top 显示当前最近运行的所有进程。 top -i 可以将空闲进程隐藏。

目录
相关文章
|
4天前
|
缓存 安全 Linux
Linux系统查看操作系统版本信息、CPU信息、模块信息
在Linux系统中,常用命令可帮助用户查看操作系统版本、CPU信息和模块信息
44 23
|
9天前
|
监控 搜索推荐 开发工具
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
2025年1月9日更新Windows操作系统个人使用-禁用掉一下一些不必要的服务-关闭占用资源的进程-禁用服务提升系统运行速度-让电脑不再卡顿-优雅草央千澈-长期更新
|
18天前
|
运维 监控 安全
CentOS 7系统 OpenSSH和OpenSSL版本升级指南
本文详细介绍如何在CentOS 7系统上升级OpenSSH和OpenSSL至最新稳定版本(OpenSSH 9.6p1和OpenSSL 1.1.1w),解决多个已知安全漏洞(如CVE-2023-51767等)。涵盖环境说明、现存漏洞、升级准备、具体步骤及故障排查,确保服务器安全。建议先在测试环境验证,再应用于生产环境。
110 6
|
1月前
|
存储 监控 Linux
嵌入式Linux系统编程 — 5.3 times、clock函数获取进程时间
在嵌入式Linux系统编程中,`times`和 `clock`函数是获取进程时间的两个重要工具。`times`函数提供了更详细的进程和子进程时间信息,而 `clock`函数则提供了更简单的处理器时间获取方法。根据具体需求选择合适的函数,可以更有效地进行性能分析和资源管理。通过本文的介绍,希望能帮助您更好地理解和使用这两个函数,提高嵌入式系统编程的效率和效果。
104 13
|
2月前
|
缓存 监控 Linux
Python 实时获取Linux服务器信息
Python 实时获取Linux服务器信息
|
2月前
|
缓存 监控 Linux
|
3月前
|
Web App开发 搜索推荐 Unix
Linux系统之MobaXterm远程连接centos的GNOME桌面环境
【10月更文挑战第21天】Linux系统之MobaXterm远程连接centos的GNOME桌面环境
727 4
Linux系统之MobaXterm远程连接centos的GNOME桌面环境
|
2月前
|
Linux 开发工具 Windows
CentOS8 64位系统 搭建内网穿透frp
【10月更文挑战第23天】本文介绍了如何在Linux系统上搭建frp内网穿透服务,并配置Windows客户端进行访问。首先,通过系统信息检查和软件下载,完成frp服务端的安装与配置。接着,在Windows客户端下载并配置frpc,实现通过域名访问内网地址。最后,通过创建systemd服务,实现frp服务的开机自动启动。
142 14
|
2月前
|
网络协议 Linux 虚拟化
如何在 Linux 系统中查看进程的详细信息?
如何在 Linux 系统中查看进程的详细信息?
266 1
|
2月前
|
Linux
如何在 Linux 系统中查看进程占用的内存?
如何在 Linux 系统中查看进程占用的内存?