連續(xù)霸榜Github!又有一個(gè)Linux神器出現(xiàn)了
最近又有一個(gè)Linux神器出現(xiàn)了,連續(xù)霸榜Github Trending榜單將近一周了,bashtop是一個(gè)用Bash編寫的 Linux 資源監(jiān)視器,可以顯示處理器、內(nèi)存、磁盤、網(wǎng)絡(luò)和進(jìn)程的使用情況與狀態(tài)。
在Reddit和Hacker News上面也有網(wǎng)友們討論。bashtop 的功能特性有很多,匯總?cè)缦拢?/p>
- 易于使用,帶有受游戲啟發(fā)的菜單系統(tǒng)。
- 快速響應(yīng)的 UI,帶有 UP、DOWN 鍵可快速對(duì)進(jìn)程進(jìn)行選擇。
- 可顯示所選進(jìn)程的詳細(xì)統(tǒng)計(jì)信息。
- 可以過(guò)濾進(jìn)程。
- 在排序選項(xiàng)之間輕松切換。
- 發(fā)送 SIGTERM、SIGKILL、SIGINT 選擇進(jìn)程。
- 帶有用于更改所有配置文件選項(xiàng)的 UI 菜單。
- 網(wǎng)絡(luò)使用情況的自動(dòng)縮放圖。
- 如果有新版本可用,則在菜單中顯示消息。
UI界面顯示的是你事先設(shè)定的進(jìn)程相關(guān)的詳細(xì)信息,如下圖所示:
主菜單頁(yè)面如下所示:
選項(xiàng)卡菜單如下所示:
所有選項(xiàng)都可以在用戶界面內(nèi)更改。配置文件存儲(chǔ)在“ $ HOME / .config / bashtop”文件夾中,bashtop.cfg :(如果找不到則自動(dòng)生成)
- #? Config file for bashtop v. 0.8.0
- #* Color theme, looks for a .theme file in "$HOME/.config/bashtop/themes", "Default" for builtin default theme
- color_theme="Default"
- #* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs
- update_ms="2500"
- #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu responsive"
- #* "cpu lazy" upates sorting over time, "cpu responsive" updates sorting directly at a cpu usage cost
- proc_sorting="cpu lazy"
- #* Reverse sorting order, "true" or "false"
- proc_reversed="false"
- #* Check cpu temperature, only works if "sensors" command is available and have values for "Package" and "Core"
- check_temp="true"
- #* Draw a clock at top of screen, formatting according to strftime, empty string to disable
- draw_clock="%R"
- #* Update main ui when menus are showing, set this to false if the menus is flickering too much for comfort
- background_update="true"
- #* Custom cpu model name, empty string to disable
- custom_cpu_name=""
- #* Enable error logging to "$HOME/.config/bashtop/error.log", "true" or "false"
- error_logging="true"
命令行選項(xiàng),不過(guò)這項(xiàng)功能暫未實(shí)現(xiàn):
- USAGE: bashtop
感興趣的伙伴們不要錯(cuò)過(guò)了哦,最后附上項(xiàng)目地址:https://github.com/aristocratos/bashtop