#process #command-line-tool #tree #system #mimics #pstree

bin+lib rpstree

A command-line tool written in Rust that mimics the functionality of the pstree command

1 unstable release

0.1.0 Sep 24, 2024

#2694 in Command line utilities

MIT license

29KB
416 lines

rpstree

基于rust编写的查看进程树的命令行工具,适用于Linux系统。

Usage

使用如下命令显示所有顶级进程及其子进程

Usage: rpstree [OPTION]
Show the process tree of the system

Options:
  -p, --pid           Show PID of the process
  -n, --numeric-sort  Sort processes by PID
  -h, --help          Display this help and exit
  -v, --version       Output version information and exit

Build

可以使用下面的命令构建二进制可执行程序(需要安装cargo):

git clone https://github.com/LaixiLiu/rpstree.git
cd rpstree
cargo build --release

你可以在target/rpstree目录下找到二进制可执行程序rpstree

No runtime deps