当前位置: 首页 > 科技观察

连续称霸Github!又一个Linux神器出现了

时间:2023-03-21 13:52:50 科技观察

最近,又一个Linux神器出现了。它霸占了GithubTrending榜单近一周。bashtop是一个用Bash编写的Linux资源监视器,可以显示处理器、内存和磁盘。、网络和进程使用情况和状态。Reddit和HackerNews上也有网友的讨论。bashtop的特点很多,总结如下:易于使用,具有游戏风格的菜单系统。快速响应的用户界面,带有向上、向下键,可快速选择流程。可以显示所选进程的详细统计信息。进程可以被过滤。在排序选项之间轻松切换。发送SIGTERM、SIGKILL、SIGINT来选择进程。使用UI菜单更改所有配置文件选项。网络使用情况的自动缩放图。如果有新版本可用,则在菜单中显示一条消息。UI界面显示您预先设置的流程相关的详细信息,如下图:主菜单页面如下:选项卡菜单如下:所有选项都可以在用户界面中更改。配置文件存储在“$HOME/.config/bashtop”文件夹中,bashtop.cfg:(如果找不到则自动生成)#?Configfileforbashtopv.0.8.0#*Colortheme,looksfora.themefilein"$HOME/.config/bashtop/themes","Default"forbuiltindefaultthemecolor_theme="Default"#*Updatetimeinmilliseconds,increasesautomaticallyifsetbelowinternallopsprocessingtime,recommended2000msoraboveforbettersampletimesforgraphsupdate_ms="2500"#*Processessorting,"pid""program""arguments""threads""user""memory""cpulazy""cpuresponsive#*“cpulazy”upatesortingovertime,“cpuresponsive”updatesortingdirectlyatacpuusagecostproc_sorting="cpulazy"#*Reversesortingorder,"true"or"false"proc_reversed="false"#*Checkcputemperature,只有在"sensors"commandis"availableandhavevaluesforPackage"check_temp="true"#*Drawaclockattopofscreen,formattingaccordingtostrftime,emptystringtodisabledraw_clock="%R"#*Updatemainuiwhenmenusareshowing,setthistofalseifthemenusisflickeringtoomuchforcomfortbackground_update="true"#*Customcpumodelname,emptystringtodisablecustom_cpu_name=""#*Enableerrorloggingto"$HOME/.config/bash","top/error.log"复制代码"or"false"error_logging="true"命令行选项,但是这个功能还没有实现:USAGE:bashtop感兴趣的小伙伴不要错过,最后附上项目地址:https://github.com/aristocratos/bashtop