Bash Powershell CPU-Auslastung Anzeigen

CPU-Auslastung von der Kommandozeile in Bash oder PowerShell anzeigen

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

Shou Arisaka
1 Min. Lesezeit
16. Okt. 2025

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

Image

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:

get cpu usage site:stackoverflow.com - Google Search

Diesen Artikel teilen

Shou Arisaka 16. Okt. 2025

🔗 Links kopieren