一款霸榜 GitHub 的开源 Linux 资源监视器!
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了一款霸榜 GitHub 的开源 Linux 资源监视器!,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3271字,纯文字阅读大概需要5分钟。
内容图文
![一款霸榜 GitHub 的开源 Linux 资源监视器!](/upload/InfoBanner/zyjiaocheng/930/8adcff4989644fc28b30d8d080d99207.jpg)
Linux 操作系统,相信大家都不陌生了,那么我们在 Linux 系统中的两个查看进程的命令也用的不计其数,ps命令用于显示当前进程 process 的状态、top命令用于实时显示 process 的动态。
那么,今天给大家推荐一款 GitHub 热榜的 Linux 资源监视器:bashtop,其主要作用:用于展示当前 Linux 操作系统的显示处理器、内存、硬盘、网络和进程等各项资源的使用情况与状态。
该工具是由瑞典的一名开发者 aristocratos 开发而成,现累积近 4000+ Star。
首先我们先来看看bashtop资源监视器主界面,看似很高大上吧。
特征:
易使用,快速响应的操作界面,可进行过程选择;
用于显示所选进程的详细统计信息的功能;
将 SIGTERM,SIGKILL,SIGINT 发送到选定的进程;
能够过滤流程;
排序选项之间可轻松切换;
网络使用情况的自动缩放图;
支持多个不同主题风格的配置;
可根据自己的需求修改及设置 Main 配色,在自定义设置主题时,重新生成一个名为.theme的主题文件并设置默认变量赋值。
#Bashtop theme with flat-remix colors
......
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]=""
# Main text color
theme[main_fg]="#737680"
# Title color for boxes
theme[title]="#272a34"
# Higlight color for keyboard shortcuts
theme[hi_fg]="#90"
# Background color of selected item in processes box
theme[selected_bg]="#b8174c"
# Foreground color of selected item in processes box
theme[selected_fg]="#ff"
# Color of inactive/disabled text
theme[inactive_fg]="#40"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#367bf0"
# Cpu box outline color
theme[cpu_box]="#367bf0"
# Memory/disks box outline color
theme[mem_box]="#19a187"
# Net up/down box outline color
theme[net_box]="#fd3535"
# Processes box outline color
theme[proc_box]="#4aaee6"
# Box divider line and small boxes line color
theme[div_line]="#50"
# Temperature graph colors
theme[temp_start]="#367bf0"
theme[temp_mid]="#b8174c"
theme[temp_end]="#d41919"
# CPU graph colors
theme[cpu_start]="#367bf0"
theme[cpu_mid]="#4aaee6"
theme[cpu_end]="#54bd8e"
# Mem/Disk free meter
theme[free_start]="#811035"
theme[free_mid]="#b8174c"
theme[free_end]="#d41919"
# Mem/Disk cached meter
theme[cached_start]="#2656a8"
theme[cached_mid]="#4aaee6"
theme[cached_end]="#23bac2"
# Mem/Disk available meter
theme[available_start]="#fea44c"
theme[available_mid]="#fd7d00"
theme[available_end]="#fe7171"
# Mem/Disk used meter
theme[used_start]="#12715f"
theme[used_mid]="#19a187"
theme[used_end]="#23bac2"
# Download graph colors
theme[download_start]="#367bf0"
theme[download_mid]="#19a187"
theme[download_end]="#4aaee6"
# Upload graph colors
theme[upload_start]="#8c42ab"
theme[upload_mid]="#b8174c"
theme[upload_end]="#d41919"
更多的主题配色,可通过bashtop项目中的themes文件夹查看。
手动安装
下载bashtop到PATH中,从克隆目录中运行。
Debian 快速安装
$ sudo ./build
卸载
$ sudo ./build --remove
由此看来目前bashtop还处于开发阶段,接下来,还有很多要去做新功能:
添加选项以及更改文本,图形和仪表的颜色。
添加并支持显示 AMD CPU 温度;
显示进程的树状视图;
重置网络下载/上传总数;
添加 gpu temp 的用法;
磁盘 io 统计信息;
调整所有框大小的选项;
添加命令行参数解析;
其他优化和代码清除;
稀疏之处添加评论;
修复跨平台的可兼容性;
GitHub 地址:https://github.com/aristocratos/bashtop
总结:
看下来,这个工具还不是很完善,期待后续的功能更新,也希望大家能够结合该工具并运用到实际环境中,给你不一般的资源监视器。
内容总结
以上是互联网集市为您收集整理的一款霸榜 GitHub 的开源 Linux 资源监视器!全部内容,希望文章能够帮你解决一款霸榜 GitHub 的开源 Linux 资源监视器!所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。