Linux单机监控工具--btop
往事随凨
2023年05月16日 15:36
btop 是 top 的升级版,相比 top 工具,btop 有更丰富的信息,比如磁盘、网络等信息,还有 CPU 使用的累计流图。
官网下载地址:
https://github.com/aristocratos/btop/releases/
下载对应的版本解压后,上传至linux服务器。
## 安装相关依赖
yum install coreutils sed git build-essential gcc -y
# 编译
make
sudo make install
sudo make setuid
#进入界面
btop
参数解释:
[root@ip-223 btop1.2.13]# btop -h
usage: btop [-h] [-v] [-/+t] [-p <id>] [--utf-force] [--debug]
optional arguments:
-h, --help show this help message and exit
-v, --version show version info and exit
-lc, --low-color disable truecolor, converts 24-bit colors to 256-color
-t, --tty_on force (ON) tty mode, max 16 colors and tty friendly graph symbols
+t, --tty_off force (OFF) tty mode
-p, --preset <id> start with preset, integer value between 0-9
--utf-force force start even if no UTF-8 locale was detected
--debug start in DEBUG mode: shows microsecond timer for information collect
and screen draw functions and sets loglevel to DEBUG
[root@ip-223 btop1.2.13]# btop -h
用法:btop [h] [v] [- / + t] [p & lt; id>][——utf-force](——调试)
可选参数:
-h,——help显示帮助信息并退出
-v,——version显示版本信息并退出
-lc,——low-color禁用truecolor,将24位颜色转换为256色
-t,——tty_on force (ON) tty模式,最多16种颜色和tty友好的图形符号
+t,——tty_off force (OFF) tty模式
-p,——预置<id>从预设的0-9之间的整数值开始
——utf-force强制启动,即使没有检测到UTF-8区域设置
——debug在debug模式下启动:显示信息收集的微秒计时器
和屏幕绘制功能,并设置日志级别为DEBUG
- (Esc, m) - 显示主菜单。
- (F2, o) - 显示选项。
- (F1, h) - 显示帮助屏幕。
- (Ctrl-C, q) - 退出程序。
- (+, -) - 向/从更新计时器添加/减去 100 毫秒。
- (向上箭头)(向下箭头) - 在进程列表中选择。
- (Enter) - 显示所选进程的详细信息。
- (Pg Up) (Pg Down) - 在进程列表中跳转 1 页。
- (Home) (End) - 跳转到进程列表的第一页或最后一页。
- (左)(右) - 选择上一个/下一个排序列。
- (b, n) - 选择上一个/下一个网络设备。
- (e) - 切换进程树视图。
- (r) - 在流程框中反转排序顺序。
- (f, /) - 输入一个字符串来过滤进程。
如果觉得工具有用,或者需要长期持久学习,请加入我的星球吧~~~~ 扫描二维码即可加入。
这个时代,信息价值比以往任何时候更有价值,一年50元,你将得到每周不少于两次技术分享,各种答疑,梳理各种测试、以及测试周边技能的学习路线,持续更新各种软件开发、软件测试测试资料!!