連續霸榜Github!又有一個Linux神器出現了
最近又有一個Linux神器出現了,連續霸榜Github Trending榜單將近一周了,bashtop是一個用Bash編寫的 Linux 資源監視器,可以顯示處理器、內存、磁盤、網絡和進程的使用情況與狀態。
在Reddit和Hacker News上面也有網友們討論。bashtop 的功能特性有很多,匯總如下:
- 易于使用,帶有受游戲啟發的菜單系統。
- 快速響應的 UI,帶有 UP、DOWN 鍵可快速對進程進行選擇。
- 可顯示所選進程的詳細統計信息。
- 可以過濾進程。
- 在排序選項之間輕松切換。
- 發送 SIGTERM、SIGKILL、SIGINT 選擇進程。
- 帶有用于更改所有配置文件選項的 UI 菜單。
- 網絡使用情況的自動縮放圖。
- 如果有新版本可用,則在菜單中顯示消息。
UI界面顯示的是你事先設定的進程相關的詳細信息,如下圖所示:
主菜單頁面如下所示:
選項卡菜單如下所示:
所有選項都可以在用戶界面內更改。配置文件存儲在“ $ HOME / .config / bashtop”文件夾中,bashtop.cfg :(如果找不到則自動生成)
- #? 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"
命令行選項,不過這項功能暫未實現:
- USAGE: bashtop
感興趣的伙伴們不要錯過了哦,最后附上項目地址:https://github.com/aristocratos/bashtop