#tui #color-scheme #monitor #system #process #time #disk

app ytop

使用Rust编写的TUI系统监控器

2个版本

0.6.2 2020年5月16日
0.6.1 2020年5月10日

#34 in #color-scheme

Download history 88/week @ 2023-11-19 101/week @ 2023-11-26 165/week @ 2023-12-03 60/week @ 2023-12-10 56/week @ 2023-12-17 47/week @ 2023-12-24 67/week @ 2023-12-31 62/week @ 2024-01-07 87/week @ 2024-01-14 78/week @ 2024-01-21 102/week @ 2024-01-28 61/week @ 2024-02-04 65/week @ 2024-02-11 113/week @ 2024-02-18 103/week @ 2024-02-25 91/week @ 2024-03-03

383 每月下载次数

MIT 许可证

460KB
2K SLoC

ytop

Minimum rustc version Matrix

另一个 基于TUI的系统监控器,这次是用Rust编写的!

缺少的功能

  • macOS缺少磁盘IO计数器和进程命令行
  • 进程过滤未实现
  • 鼠标使用未实现

安装

目前支持Linux和macOS,计划支持所有主要平台。

软件包管理器

Packaging status

AUR

ytop有三个不同的AUR软件包: ytopytop-binytop-git

Fedora/CentOS

官方Fedora/EPEL仓库的更新可能目前滞后。作为替代方案,您可以从 COPR 安装。

sudo dnf copr enable atim/ytop -y
sudo dnf install ytop

Homebrew

brew tap cjbassi/ytop
brew install ytop

预构建的二进制文件

预构建的二进制文件可在 发布 选项卡中找到。

从源代码

cargo install ytop

使用方法

快捷键

  • 退出: q<C-c>
  • 暂停: <Space>
  • 进程导航
    • k<Up>:向上
    • j<Down>:向下
    • <C-u>:向上半页
    • <C-d>:向下半页
    • <C-b>:向上一页
    • <C-f>:向下两页
    • gg<Home>:跳转到顶部
    • G<End>:跳转到底部
  • 处理动作
    • <Tab>:切换进程分组
    • dd:杀死选定的进程或进程组
  • 进程排序
    • p:PID/Count
    • n:命令
    • c:CPU
    • m:内存
  • 进程过滤
    • /:开始编辑过滤器
    • (编辑时)
      • <Enter>:接受过滤器
      • <C-c><Escape>:清除过滤器
  • CPU 和内存图形缩放
    • h:放大
    • l:缩小
  • ?:切换键绑定帮助菜单

鼠标

  • 点击选择进程
  • 鼠标滚轮滚动进程

颜色方案

ytop 附带一些颜色方案,可以通过带有颜色方案名称的 -c 标志来设置。您可以在 颜色方案文件夹 中找到所有颜色方案。

要创建自定义颜色方案,将默认之一复制到 ~/.config/ytop/<new-name>.json,然后使用 ytop -c <new-name> 加载。欢迎提交颜色方案 PR!

CLI 选项

USAGE:
    ytop [FLAGS] [OPTIONS]

FLAGS:
    -a, --average-cpu    Show average CPU in the CPU widget
    -b, --battery        Show Battery widget (overridden by 'minimal' flag)
    -f, --fahrenheit     Show temperatures in fahrenheit
    -h, --help           Prints help information
    -m, --minimal        Only show the CPU, Mem, and Process widgets
    -p, --per-cpu        Show each CPU in the CPU widget
    -s, --statusbar      Show a statusbar with the time
    -V, --version        Prints version information

OPTIONS:
    -c, --colorscheme <colorscheme>    Set a colorscheme [default: default]
    -i, --interface <interface>        The name of the network interface to show in the Net widget. 'all' shows all
                                       interfaces [default: all]
    -I, --interval <interval>          Interval in seconds between updates of the CPU and Mem widgets. Can specify
                                       either a whole number or a fraction with a numerator of 1 [default: 1]

依赖关系

~15–28MB
~403K SLoC