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 可以将空闲进程隐藏。

目录
相关文章
|
1月前
|
Ubuntu Linux
计算机基础知识:linux系统怎么安装?
在虚拟机软件中创建一个新的虚拟机,并选择相应操作系统类型和硬盘空间大小等参数。将下载的 ISO 镜像文件加载到虚拟机中。启动虚拟机,进入安装界面,并按照步骤进行安装。安装完成后,可以在虚拟机中使用 Linux 系统。
|
1月前
|
缓存 监控 Linux
Linux系统清理缓存(buff/cache)的有效方法。
总结而言,在大多数情形下你不必担心Linux中buffer与cache占用过多内存在影响到其他程序运行;因为当程序请求更多内存在没有足够可用资源时,Linux会自行调整其占有量。只有当你明确知道当前环境与需求并希望立即回收这部分资源给即将运行重负载任务之前才考虑上述方法去主动干预。
653 10
|
1月前
|
安全 Linux 数据安全/隐私保护
为Linux系统的普通账户授予sudo访问权限的过程
完成上述步骤后,你提升的用户就能够使用 `sudo`命令来执行管理员级别的操作,而无需切换到root用户。这是一种更加安全和便捷的权限管理方式,因为它能够留下完整的权限使用记录,并以最小权限的方式工作。需要注意的是,随意授予sudo权限可能会使系统暴露在风险之中,尤其是在用户不了解其所执行命令可能带来的后果的情况下。所以在配置sudo权限时,必须谨慎行事。
294 0
|
1月前
|
Ubuntu Linux 开发者
国产 Linux 发行版再添新成员,CutefishOS 系统简单体验
当然,系统生态构建过程并不简单,不过为了帮助国产操作系统优化生态圈,部分企业也开始用国产操作系统替代 Windows,我们相信肯定会有越来越多的精品软件登录 Linux 平台。
101 0
|
1月前
|
Ubuntu 安全 Linux
Linux系统入门指南:从零开始学习Linux
Shell脚本是一种强大的自动化工具,可以帮助您简化重复的任务或创建复杂的脚本程序。了解Shell脚本的基本语法和常用命令,以及编写和运行Shell脚本的步骤,将使您更高效地处理日常任务。
189 0
|
1月前
|
Ubuntu Linux 图形学
Linux学习之Linux桌面系统有哪些?
Cinnamon:与MATE类似,Cinnamon 拥有 GNOME 和 Unity 等其它桌面环境所没有的种种功能,是高度可定制的桌面环境,不需要任何外部插件、窗口组件和调整工具来定制桌面。
109 0
|
1月前
|
Ubuntu 安全 Linux
十款常用Linux系统介绍
本文不是什么大盘点。市面上有好几百款发行版,每款发行版在某个方面都与众不同。不可能在此全部罗列,本文只罗列了十款最常见的Linux发行版(世界上只有两种人,一种是懂二进制的,另一种是不懂二进制的)。请宣传Linux的魅力或威力。
|
1月前
|
Ubuntu 安全 Linux
linux系统|Ubuntu 18.10 如期正式发布,新面孔新技术都来了
微软公司也终于沉不住气要在linux开源系统开疆扩土了。mscode这样的工具的确好用,虽然差第一名那么一点儿,但是最老版的公司出版的软件的确很是让人动心!
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Win10安装Linux子系统教程!如何在Win10系统中安装Ubuntu!
登录系统后,输入cd /返回上一级,然后再输入“ls”查看一下系统文件目录,看看对不对!
|
1月前
|
Web App开发 安全 Linux
Linux 比起其他系统的5 个优点和 5 个缺点
对Linux系统感兴趣的朋友,可以点击下方书籍进行学习。