Linux 操做系統,相信你們都不陌生了,那麼咱們在 Linux 系統中的兩個查看進程的命令也用的不可勝數,ps命令用於顯示當前進程 process 的狀態、top命令用於實時顯示 process 的動態。git
那麼,今天給你們推薦一款 GitHub 熱榜的 Linux 資源監視器:bashtop,其主要做用:用於展現當前 Linux 操做系統的顯示處理器、內存、硬盤、網絡和進程等各項資源的使用狀況與狀態。github
該工具是由瑞典的一名開發者 aristocratos 開發而成,現累積近 4000+ Star。bash
首先咱們先來看看bashtop資源監視器主界面,看似很高大上吧。網絡
特徵:
易使用,快速響應的操做界面,可進行過程選擇;ide
用於顯示所選進程的詳細統計信息的功能;工具
將 SIGTERM,SIGKILL,SIGINT 發送到選定的進程;優化
可以過濾流程;ui
排序選項之間可輕鬆切換;spa
網絡使用狀況的自動縮放圖;操作系統
支持多個不一樣主題風格的配置;
可根據本身的需求修改及設置 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
總結:看下來,這個工具還不是很完善,期待後續的功能更新,也但願你們可以結合該工具並運用到實際環境中,給你不通常的資源監視器。