PowerShell Bash history-Befehl

Bash-History-Befehl in PowerShell emulieren

Dieser Artikel stellt die Verwendung und Beispiele von "h" vor, das dem history-Befehl von Linux Bash in PowerShell, der Windows-Befehlszeilensprache, entspricht. ForEach-Object...

Shou Arisaka
1 Min. Lesezeit
2. Okt. 2025

Dieser Artikel stellt die Verwendung und Beispiele von “h” vor, das dem history-Befehl von Linux Bash in PowerShell, der Windows-Befehlszeilensprache, entspricht.

h | ForEach-Object {$_.CommandLine}

Beispiel:

PS C:\pg> h | ForEach-Object {$_.CommandLine} | sls "note"

notepad

Diesen Artikel teilen

Shou Arisaka 2. Okt. 2025

🔗 Links kopieren