Dieser Artikel stellt vor, wie man die CPU-Auslastung von der Kommandozeile wie Linux WSL Bash, Windows cmd.exe und PowerShell anzeigt.

Für Bash:
grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
bash - How to get overall CPU usage (e.g. 57%) on Linux - Stack Overflow
Für PowerShell:
$( Get-WmiObject win32_processor | Measure-Object -property LoadPercentage -Average | Select Average ).Average
How do I find the CPU and RAM usage using PowerShell? - Stack Overflow
Zur Referenz, wenn Sie es in C# machen möchten: