ClementTsang/bottom

GitHub: ClementTsang/bottom

一款跨平台终端图形化系统/进程监控工具,帮助用户在 Linux、macOS 和 Windows 上实时查看资源占用并管理进程。

Stars: 13563 | Forks: 349

bottom (btm)

A customizable cross-platform graphical process/system monitor for the terminal.
Supports Linux, macOS, and Windows. Inspired by gtop, gotop, and htop.

[CI status](https://github.com/ClementTsang/bottom/actions?query=branch%3Amain) [crates.io link](https://crates.io/crates/bottom) [Stable documentation](https://bottom.pages.dev/stable) [Nightly documentation](https://bottom.pages.dev/nightly) [Doc mirror on GitHub Pages](https://clementtsang.github.io/bottom/stable)
Quick demo recording showing off bottom's searching, expanding, and process killing.

Demo using the Gruvbox theme (--theme gruvbox), along with IBM Plex Mono and Kitty

## Table of contents - [Features](#features) - [Support](#support) - [Official](#official) - [Unofficial](#unofficial) - [Installation](#installation) - [Cargo](#cargo) - [Alpine](#alpine) - [Arch Linux](#arch-linux) - [Debian / Ubuntu](#debian--ubuntu) - [Exherbo Linux](#exherbo-linux) - [Fedora / CentOS / AlmaLinux / Rocky Linux](#fedora--centos--almalinux--rocky-linux) - [COPR](#copr) - [Terra](#terra) - [RPM](#rpm) - [Gentoo](#gentoo) - [Nix](#nix) - [openSUSE](#opensuse) - [Snap](#snap) - [Solus](#solus) - [Void](#void) - [gah](#gah) - [Homebrew](#homebrew) - [MacPorts](#macports) - [Chocolatey](#chocolatey) - [Scoop](#scoop) - [winget](#winget) - [Windows installer](#windows-installer) - [Conda](#conda) - [mise](#mise) - [Pre-built binaries](#pre-built-binaries) - [Auto-completion](#auto-completion) - [Usage](#usage) - [Configuration](#configuration) - [Troubleshooting](#troubleshooting) - [Documentation](#documentation) - [Contribution](#contribution) - [Contributors](#contributors) - [Thanks](#thanks) ## Features As (yet another) process/system visualization and management application, bottom supports the typical features: - Graphical visualization widgets for: - [CPU usage](https://bottom.pages.dev/nightly/usage/widgets/cpu/) over time, at an average and per-core level - [RAM and swap usage](https://bottom.pages.dev/nightly/usage/widgets/memory/) over time - [Network I/O usage](https://bottom.pages.dev/nightly/usage/widgets/network/) over time with support for zooming in/out the current time interval displayed. - Widgets for displaying info about: - [Disk capacity/usage](https://bottom.pages.dev/nightly/usage/widgets/disk/) - [Temperature sensors](https://bottom.pages.dev/nightly/usage/widgets/temperature/) - [Battery usage](https://bottom.pages.dev/nightly/usage/widgets/battery/) - [A process widget](https://bottom.pages.dev/nightly/usage/widgets/process/) for displaying, sorting, and searching info about processes, as well as support for: - [Kill signals](https://bottom.pages.dev/nightly/usage/widgets/process/#process-termination) - [Tree mode](https://bottom.pages.dev/nightly/usage/widgets/process/#tree-mode) - [Cross-platform support](https://github.com/ClementTsang/bottom#support) for Linux, macOS, and Windows, with more planned in the future. - [Customizable behaviour](https://bottom.pages.dev/nightly/configuration/command-line-options/) that can be controlled with command-line options or a config file, such as: - Custom and built-in colour themes - Customizing widget behaviour - Changing the layout of widgets - Filtering out entries in some widgets - And more: - [An htop-inspired basic mode](https://bottom.pages.dev/nightly/usage/basic-mode/) - [Expansion to focus on just one widget](https://bottom.pages.dev/nightly/usage/general-usage/#expansion) You can find more details in [the documentation](https://bottom.pages.dev/nightly/usage/general-usage/). ## Support ### Official bottom _officially_ supports the following operating systems and corresponding architectures: - macOS (`x86_64`, `aarch64`) - Linux (`x86_64`, `i686`, `aarch64`) - Windows (`x86_64`, `i686`) These platforms are tested to work for the most part and issues on these platforms will be fixed if possible. Furthermore, binaries are built and tested using the most recent version of stable Rust at the time. For more details on supported platforms and known problems, check out [the documentation](https://bottom.pages.dev/nightly/support/official/). ### Unofficial bottom may work on a number of platforms that aren't officially supported. Note that unsupported platforms: - Might not be tested in CI to build or pass tests (see [here](./.github/workflows/ci.yml) for checked platforms). - Might not be properly tested by maintainers prior to a stable release. - May only receive limited support, such as missing features or bugs that may not be fixed. Note that some unsupported platforms may eventually be officially supported (e.g., FreeBSD). A non-comprehensive list of some currently unofficially-supported platforms that may compile/work include: - FreeBSD (`x86_64`) - Linux (`armv6`, `armv7`, `powerpc64le`, `riscv64gc`, `loongarch64`) - Android (`arm64`) - Windows (`arm64`) For more details on unsupported platforms and known problems, check out [the documentation](https://bottom.pages.dev/nightly/support/unofficial/). ## Installation ### Cargo Installation via `cargo` can be done by installing the [`bottom`](https://crates.io/crates/bottom) crate: # You might need to update the stable version of Rust first. # Other versions might work, but this is not guaranteed. rustup update stable # Install the binary from crates.io. cargo install bottom --locked # If you use another channel by default, you can specify # the what channel to use like so: cargo +stable install bottom --locked # --locked may be omitted if you wish to not use the # locked crate versions in Cargo.lock. However, be # aware that this may cause problems with dependencies. cargo install bottom Alternatively, you can use `cargo install` using the repo as the source. # You might need to update the stable version of Rust first. # Other versions might work, but this is not guaranteed. rustup update stable # Option 1 - Download an archive from releases and install curl -LO https://github.com/ClementTsang/bottom/archive/0.12.3.tar.gz tar -xzvf 0.12.3.tar.gz cargo install --path . --locked # Option 2 - Manually clone the repo and install git clone https://github.com/ClementTsang/bottom cd bottom cargo install --path . --locked # Option 3 - Install using cargo with the repo as the source cargo install --git https://github.com/ClementTsang/bottom --locked # You can also pass in the target-cpu=native flag to try to # use better CPU-specific optimizations. For example: RUSTFLAGS="-C target-cpu=native" cargo install --path . --locked ### Alpine bottom is available as a [package](https://pkgs.alpinelinux.org/packages?name=bottom&branch=edge&repo=&arch=&origin=&flagged=&maintainer=) for Alpine Linux via `apk`: apk add bottom Packages for documentation ([`bottom-doc`](https://pkgs.alpinelinux.org/packages?name=bottom-doc&branch=edge&repo=&arch=&origin=&flagged=&maintainer=)) and completions for Bash ([`bottom-bash-completion`](https://pkgs.alpinelinux.org/packages?name=bottom-bash-completion&branch=edge&repo=&arch=&origin=&flagged=&maintainer=)), Fish ([`bottom-fish-completion`](https://pkgs.alpinelinux.org/packages?name=bottom-fish-completion&branch=edge&repo=&arch=&origin=&flagged=&maintainer=)), and Zsh ([`bottom-zsh-completion`](https://pkgs.alpinelinux.org/packages?name=bottom-zsh-completion&branch=edge&repo=&arch=&origin=&flagged=&maintainer=)) are also available. ### Arch Linux bottom is available as an [official package](https://archlinux.org/packages/extra/x86_64/bottom/) that can be installed with `pacman`: sudo pacman -S bottom If you want the latest changes that are not yet stable, you can also install `bottom-git` [from the AUR](https://aur.archlinux.org/packages/bottom-git): # Using paru paru -S bottom-git # Using yay yay -S bottom-git ### Debian / Ubuntu A `.deb` file is provided on each [stable release](https://github.com/ClementTsang/bottom/releases/latest) and [nightly builds](https://bottom.pages.dev/nightly/nightly-release) for x86, aarch64, and armv7. Some examples of installing it this way: # x86-64 curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom_0.12.3-1_amd64.deb sudo dpkg -i bottom_0.12.3-1_amd64.deb # ARM64 curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom_0.12.3-1_arm64.deb sudo dpkg -i bottom_0.12.3-1_arm64.deb # ARM curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom_0.12.3-1_armhf.deb sudo dpkg -i bottom_0.12.3-1_armhf.deb # musl-based curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom-musl_0.12.3-1_amd64.deb sudo dpkg -i bottom-musl_0.12.3-1_amd64.deb ### Exherbo Linux bottom is available as a [rust package](https://gitlab.exherbo.org/exherbo/rust/-/tree/master/packages/sys-process/bottom) that can be installed with `cave`: cave resolve -x repository/rust cave resolve -x bottom ### Fedora / CentOS / AlmaLinux / Rocky Linux #### COPR bottom is available on [COPR](https://copr.fedorainfracloud.org/coprs/atim/bottom/): sudo dnf copr enable atim/bottom -y sudo dnf install bottom #### Terra bottom is also available via [Terra](https://terra.fyralabs.com/): sudo dnf install --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' --setopt='terra.gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc' terra-release sudo dnf install bottom #### RPM `.rpm` files are also generated for x86 in the [releases](https://github.com/ClementTsang/bottom/releases) page. For example: curl -LO https://github.com/ClementTsang/bottom/releases/download/0.12.3/bottom-0.12.3-1.x86_64.rpm sudo dnf install ./bottom-0.12.3-1.x86_64.rpm ### Gentoo Available in the [official Gentoo repo](https://packages.gentoo.org/packages/sys-process/bottom): sudo emerge --ask sys-process/bottom ### Nix Available [in Nixpkgs](https://search.nixos.org/packages?channel=unstable&show=bottom&from=0&size=1&sort=relevance&type=packages) as `bottom`: nix profile install nixpkgs#bottom `bottom` can also be installed and configured through the [home-manager](https://nix-community.github.io/home-manager) module: { programs.bottom.enable = true; } ### openSUSE Available in openSUSE Tumbleweed: zypper in bottom ### Snap bottom is available as a [snap](https://snapcraft.io/install/bottom/ubuntu): sudo snap install bottom # To allow the program to run as intended sudo snap connect bottom:mount-observe sudo snap connect bottom:hardware-observe sudo snap connect bottom:system-observe sudo snap connect bottom:process-control ### Solus Available [in the Solus repos](https://dev.getsol.us/source/bottom/): sudo eopkg it bottom ### Void Available [in the void-packages repo](https://github.com/void-linux/void-packages/tree/master/srcpkgs/bottom): sudo xbps-install bottom ### gah bottom can also be installed on Linux or macOS using [gah](https://github.com/marverix/gah): gah install bottom ### Homebrew The formula is available [here](https://formulae.brew.sh/formula/bottom): brew install bottom ### MacPorts Available [here](https://ports.macports.org/port/bottom/): sudo port selfupdate sudo port install bottom ### Chocolatey Chocolatey packages are located [here](https://chocolatey.org/packages/bottom): choco install bottom ### Scoop Available in the [Main bucket](https://github.com/ScoopInstaller/Main): scoop install bottom ### winget The winget package can be found [here](https://github.com/microsoft/winget-pkgs/tree/master/manifests/c/Clement/bottom): winget install bottom # If you need a more specific app id: winget install Clement.bottom You can uninstall via Control Panel, Options, or `winget --uninstall bottom`. ### Windows installer You can manually install bottom as a Windows program by downloading and using the `.msi` file from the [latest release](https://github.com/ClementTsang/bottom/releases/latest). ### Conda You can install bottom using `conda` with [this conda-smithy repository](https://github.com/conda-forge/bottom-feedstock): # Add the channel conda config --add channels conda-forge conda config --set channel_priority strict # Install conda install bottom ### mise bottom is available in [mise](https://github.com/jdx/mise). You can install it like so: mise use -g bottom@latest ### Pre-built binaries You can also use the pre-built release binaries: - [Latest stable release](https://github.com/ClementTsang/bottom/releases/latest) - [Latest nightly release](https://bottom.pages.dev/nightly/nightly-release) To use, download and extract the binary that matches your system. You can then run by doing: ./btm or by installing to your system following the procedures for installing binaries to your system. #### Auto-completion The release binaries in [the releases page](https://github.com/ClementTsang/bottom/releases) are packaged with shell auto-completion files for Bash, Zsh, fish, Powershell, Elvish, Fig, and Nushell. To install them: - For Bash, move `btm.bash` to `$XDG_CONFIG_HOME/bash_completion or /etc/bash_completion.d/`. - For Zsh, move `_btm` to one of your `$fpath` directories. - For fish, move `btm.fish` to `$HOME/.config/fish/completions/`. - For PowerShell, add `_btm.ps1` to your PowerShell [profile](). - For Elvish, the completion file is `btm.elv`. - For Fig, the completion file is `btm.ts`. - For Nushell, use `btm.nu`. The individual auto-completion files are also included in the stable/nightly releases as `completion.tar.gz` if needed. ## Usage You can run bottom using `btm`. - For help on flags, use `btm -h` for a quick overview or `btm --help` for more details. - For info on key and mouse bindings, press `?` inside bottom or refer to the [documentation page](https://bottom.pages.dev/nightly/). You can find more information on usage in the [documentation](https://bottom.pages.dev/nightly/). ## Configuration bottom accepts a number of command-line arguments to change the behaviour of the application as desired. Additionally, bottom will automatically generate a configuration file on the first launch, which can be changed. More details on configuration can be found [in the documentation](https://bottom.pages.dev/nightly/configuration/config-file/). ## Troubleshooting If some things aren't working, give the [troubleshooting page](https://bottom.pages.dev/nightly/troubleshooting) a look. If things still aren't working, then consider asking [a question](https://github.com/ClementTsang/bottom/discussions) or filing a [bug report](https://github.com/ClementTsang/bottom/issues/new/choose) if you think it's a bug. ## Documentation The main documentation page can be found at , using Cloudflare Pages. If needed, a mirror hosted using Github Pages is also available at . ## Contribution Whether it's reporting bugs, suggesting features, maintaining packages, or submitting a PR, contribution is always welcome! Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to contribute to bottom. ### Contributors Thanks to all contributors:
Marcin Wojnarowski
Marcin Wojnarowski

💻 📦
Mahmoud Al-Qudsi
Mahmoud Al-Qudsi

💻
Andy
Andy

💻
Kim Brose
Kim Brose

💻
Sven-Hendrik Haase
Sven-Hendrik Haase

📖
Artem Polishchuk
Artem Polishchuk

📦 📖
Trung Lê
Trung Lê

📦 🚇
dm9pZCAq
dm9pZCAq

📦 📖
Lukas Rysavy
Lukas Rysavy

💻
Erlend Hamberg
Erlend Hamberg

💻
Frederick Zhang
Frederick Zhang

💻
pvanheus
pvanheus

💻
Brian Di Palma
Brian Di Palma

📖
Lasha Kanteladze
Lasha Kanteladze

📖
Herby Gillot
Herby Gillot

📖
Greg Brown
Greg Brown

💻
TotalCaesar659
TotalCaesar659

📖
George Rawlinson
George Rawlinson

📖 📦
adiabatic
adiabatic

📖
Randy Barlow
Randy Barlow

💻
Patrick Jackson
Patrick Jackson

🤔 📖
Mateusz Mikuła
Mateusz Mikuła

💻
Guillaume Gomez
Guillaume Gomez

💻
shura
shura

💻
Wesley Moore
Wesley Moore

💻
xgdgsc
xgdgsc

📖
ViridiCanis
ViridiCanis

💻
Justin Martin
Justin Martin

💻 📖
Diana
Diana

💻
Hervy Qurrotul Ainur Rozi
Hervy Qurrotul Ainur Rozi

📖
Mike Rivnak
Mike Rivnak

📖
lroobrou
lroobrou

💻
database64128
database64128

💻
Chon Sou
Chon Sou

💻
DrSheppard
DrSheppard

📖
Rareș Constantin
Rareș Constantin

💻
felipesuri
felipesuri

📖
spital
spital

💻
Michael Bikovitsky
Michael Bikovitsky

💻
Dmitry Valter
Dmitry Valter

💻
Grace Stok
Grace Stok

💻
Yuxuan Shui
Yuxuan Shui

💻
Wenqing Zong
Wenqing Zong

💻
Gabriele Belluardo
Gabriele Belluardo

💻
Zeb Piasecki
Zeb Piasecki

💻
wzy
wzy

💻 📖
john-s-lin
john-s-lin

📖
Lee Wonjoon
Lee Wonjoon

💻 📖
David Legrand
David Legrand

📖
Michal Bryxí
Michal Bryxí

📖
Raphael Erik Hviding
Raphael Erik Hviding

💻
CosmicHorror
CosmicHorror

💻
Ben Woods
Ben Woods

📖
Stephen Huan
Stephen Huan

💻
Jason Gwartz
Jason Gwartz

📖
llc0930
llc0930

💻
Ada Ahmed
Ada Ahmed

💻
Wateir
Wateir

📖
Andrey Alekseenko
Andrey Alekseenko

💻
Fotis Gimian
Fotis Gimian

💻 📖
Fernando Rodrigues
Fernando Rodrigues

📖
Matthew Toohey
Matthew Toohey

💻
Julius Enriquez
Julius Enriquez

📖
Ben Brown
Ben Brown

💻
Yuri Astrakhan
Yuri Astrakhan

💻 📖
Kenichi Kamiya
Kenichi Kamiya

💻
yahlia
yahlia

💻
Bucket-Bucket-Bucket
Bucket-Bucket-Bucket

💻
Marek Sierociński
Marek Sierociński

📖
Tommaso Montanari
Tommaso Montanari

🎨 🤔
Jean-Yves LENHOF
Jean-Yves LENHOF

📖
Adarsh Das
Adarsh Das

💻 📖
rezky_nightky
rezky_nightky

📖
gitgoggles
gitgoggles

💻
Tom
Tom

🚧
G
G

📖
Filipe Paniguel
Filipe Paniguel

📖
Qiying Wang
Qiying Wang

💻
dastarruer
dastarruer

💻
ChrisJr404
ChrisJr404

💻
Gergő Gutyina
Gergő Gutyina

💻
Puneet Dixit
Puneet Dixit

💻
## Thanks - This project is very much inspired by [gotop](https://github.com/xxxserxxx/gotop), [gtop](https://github.com/aksakalli/gtop), and [htop](https://github.com/htop-dev/htop/). - This application was written with [many](https://github.com/ClementTsang/bottom/blob/main/Cargo.toml), [_many_ libraries](https://github.com/ClementTsang/bottom/blob/main/Cargo.lock), as well as many services and programs, all built on top of the work of many talented people. bottom would not exist without all of this. - And of course, thank you again to all contributors and package maintainers! - I also really appreciate anyone who has used bottom, and those who go out of their way to report bugs or suggest ways to improve things. I hope it's been a useful tool for others. - To those who support my work financially via donations, thank you so much. - Thanks to JetBrains for providing access to tools that I use to develop bottom as part of their [open source support program](https://jb.gg/OpenSourceSupport). JetBrains logo - Also thanks to [SignPath.io](https://about.signpath.io/) for providing a free code signing service, and to the [SignPath Foundation](https://signpath.org/) for the certificate.
标签:Rust, 可视化界面, 终端UI, 网络流量审计, 运维工具, 通知系统