现在的位置: 首页 > 综合 > 正文

Tmux Show CPU Usage And Memory Usage

2012年04月29日 ⁄ 综合 ⁄ 共 244字 ⁄ 字号 评论关闭

 

EDIT:

~/.tmux.conf

set -g status-interval 2
set -g status-right "#(vmstat -SM 1 2 | awk 'END {print \"cpu:\"100-$15\"%\" \" mem:\"512-$4-$5-$6\"M\"}')#[default] %R"
"512" replace your total memory, e.g. 1024, 2048. get by "free -m". total memory don't often change, so not in command.

抱歉!评论已关闭.