Answer the question
In order to leave comments, you need to log in
Is it possible to use the terminal at the same time as running htop?
In general, the essence of the issue is clear.
I'm wondering if it's possible to launch only the top window from htop, where it shows the CPU and RAM usage and continue to work in the terminal.
Or what analogues are there to do this.
Thank you.
Answer the question
In order to leave comments, you need to log in
Solved with:
{ head -n1 /proc/stat;sleep 0.2;head -n1 /proc/stat; } | awk '/^cpu /{u=$2-u;s=$4-s;i=$5-i;w=$6-w}END{print int(0.5+100*(u+s+w)/(u+s+i+w))}'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question