Linux热门–监视Linux系统资源Cpu,内存,网络

Monitoring Linux systems is one of the most important of system administrators. There are a lot of different monitoring tools that provide different features. We will look in detail those Linux system monitoring software in this tutorial.

监视Linux系统是最重要的系统管理员之一。 有许多不同的监视工具提供不同的功能。 在本教程中,我们将详细介绍那些Linux系统监视软件。

最佳 (Top)

The top is the most used, fast simple tool to monitor Linux system resources. It can be easily invoked like below. top command is provided by procps-ng package.

顶部是监视Linux系统资源的最常用,快速的简单工具。 可以像下面这样轻松地调用它。 top命令由procps-ng软件包提供。

$ top
Top
Top
最佳

By default, processes are sorted by their PID number.

默认情况下,进程按其PID编号排序。

帮帮我 (Help)

To get help h is used. top command help page provides simple and fast information about commands. Information like kill, renice, locate column, toggle sorting, toggle summary, add remove fields

为了获得帮助,使用了htop命令帮助页面提供有关命令的简单快速信息。 诸如kill,renice,locate列,切换排序,切换摘要,添加删除字段之类的信息

h
Help
Help
帮帮我

排序(Sorting)

To sort according to CPU usage use c. The calculation of CPU usage is done withing 2-second intervals. So some process may change position according to their load for 2 second period.

要根据CPU使用率进行排序,请使用c 。 CPU使用率的计算间隔为2秒。 因此,某些过程可能会根据其负载在2秒钟内更改位置。

c
Sorting
Sorting
排序

内存图(Memory Graph)

Show memory information in different ways like bar graph use m.

以不同的方式显示内存信息,例如条形图使用m

m
Memory Graph
Memory Graph
内存图

根据用户名过滤流程(Filter Process According To Username)

Filter process according to their owner user use u and put user name like. We will get the following line after pressing u and then enter a username where in this example ismail.

过滤过程根据所有者用户使用u并放入用户名之类的。 按下u后,我们将获得以下行,然后输入用户名,在此示例中为ismail

u
Which user (blank for all) ismail
Filter Process According To Username
Filter Process According To Username
根据用户名过滤流程

杀死过程(Kill Process)

Kill process with <strong>k and PID. Keep in mind that we need to have the required privileges to kill the process. We will get following like to enter PID and 3555 is our PID.

使用<strong>k和PID终止进程。 请记住,我们需要具有所需的特权才能终止该进程。 我们将得到以下输入PID的信息,而3555是我们的PID。

k
PID to signal/kill [default pid = 4122] 3555
Kill Process
Kill Process
杀死过程

色彩模式(Color Mode)

Toggle to color mode to see a colorful table with z. We can see that the white colors are turned into the red.

切换到颜色模式以查看带有z的彩色表格。 我们可以看到白色变成了红色。

z
Color Mode
Color Mode
色彩模式

森林景观(Forest View)

Change view of process table like with V to forest view. In the forest, the view provides a hierarchical process view with parent and child processes. This can be useful to get the hierarchy of processes and services.

将过程表的视图(如V)更改为林视图。 在林中,该视图提供带有父流程和子流程的分层流程视图。 这对于获取流程和服务的层次结构很有用。

V
Forest View
Forest View
森林景观

显示过程绝对路径(Show Process Absolute Path)

While showing process only the name of the executable is shown by default. To show the absolute path of the process c can be used as below.

在显示进程时,默认情况下仅显示可执行文件的名称。 显示过程c的绝对路径 可以如下使用。

c
Show Process Absolute Path
Show Process Absolute Path
显示过程绝对路径
LEARN MORE  How To Check Memory Usage Of Linux?
了解更多如何检查Linux的内存使用情况?

翻译自: https://www.poftut.com/linux-top-monitor-linux-system-resources-cpu-memory-network/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值