linux cli chart real time 1

linux cli chart real time

curl -LO && sudo apt install ./ttyplot_1.4-1.deb

{ while true; do ps auxw | grep php | grep -v fpm | grep -v grep|grep -v tee | wc -l; sleep 0.5; done } | ttyplot

Here is what the above code is Doing:
1. We’re using the ps command to get a list of all processes running on the system.
2. We’re using grep to filter out the processes we don’t want to see.
3. We’re using wc to count the number of processes that are left.
4. We’re using sleep to pause for a half second.
5. We’re using a while loop to repeat the above steps.
6. We’re using ttyplot to display the results.

Similar Posts