Crates.io | rpstree |
lib.rs | rpstree |
version | 0.1.0 |
source | src |
created_at | 2024-09-24 08:21:18.816024 |
updated_at | 2024-09-24 08:21:18.816024 |
description | A command-line tool written in Rust that mimics the functionality of the pstree command. |
homepage | |
repository | |
max_upload_size | |
id | 1384897 |
size | 39,208 |
基于rust编写的查看进程树的命令行工具,适用于Linux系统。
使用如下命令显示所有顶级进程及其子进程
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
可以使用下面的命令构建二进制可执行程序(需要安装cargo
):
git clone https://github.com/LaixiLiu/rpstree.git
cd rpstree
cargo build --release
你可以在target/rpstree
目录下找到二进制可执行程序rpstree
。