Crates.io | ps-mem |
lib.rs | ps-mem |
version | 0.2.15 |
source | src |
created_at | 2021-07-03 04:41:13.413987 |
updated_at | 2024-06-19 06:02:13.934803 |
description | The process memory size listing |
homepage | |
repository | https://github.com/aki-akaguma/ps-mem |
max_upload_size | |
id | 418099 |
size | 522,822 |
The process memory size listing.
ps-mem
command is listing all process memory size.
ps-mem --help
Usage:
ps-mem [options]
ps-mem [options] <command> {<arg1> <arg2> ...}
print processes memory by sort,
or print one processe memory
Options:
-a, --all all pid (include kernel threads)
--sort <order> sort by <order>: rss|swap|total
--pid <number> output only selected pid
--sleep <number> sleep <number> milli second
-l, --cmdline view command line
-H, --help display this help and exit
-V, --version display version information and exit
-X <x-options> x options. try -X help
Examples:
Show all prosesses memory:
ps-mem --all
Show one prosess memory:
ps-mem --pid 1234
Invoke and show one prosess memory:
ps-mem -- find / -type f
cargo install ps-mem
cargo deb
and install .deb into your local repository of debian package.
sudo ps-mem
you can see a largest memory process.
sudo ps-mem --sort=total | tail
or
sudo ps-mem --sort=total | aki-unbody -t 10
You see the process memory size of that pid is 1234.
ps-mem --pid 1234
You see the process memory size of the invoked find command.
ps-mem find / -type f
This project is licensed under either of
at your option.