Place Holder Projects Code
Bash MySQL JavaScript MySQL Quick Reference
Notes Documents Return of the Fed Login

Quick pid Watch

Imagine you're curious about a program's resource usage as you modify its parameters... Repeatably watch a process using top and pgrep.

Easy "Enter, q, up" repeat...

top -p  $(pgrep i3status)

Here, $(pgrep i3status)  substitutes the pid of i3status into top's -p - for pid - flag argument.

* Also, at least in GNU top, when running top, you can press o and then enter COMMAND=i3status for the same effect