this post was submitted on 29 May 2025
138 points (97.3% liked)

Linux

7654 readers
295 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

In the comments section of a recent post I found out that Windows PowerShell had been ported to Linux. Had no clue it was a thing.

Went looking and found this old article attempting to explain why they did it. Not remotely interested in giving up Bash for PowerShell, but I thought it was interesting enough to share. The article seems to be from 2016.

I have never been more tempted to check the NSFW box, but I'll leave it open for now unless a mod complains. :-D

you are viewing a single comment's thread
view the rest of the comments
[–] Irelephant@lemm.ee 39 points 1 week ago (55 children)

Powershell is annoyingly good though.

[–] JustEnoughDucks 2 points 1 week ago (4 children)

No grep though as far as I could find... There was a similar cmdlet IIRC, but it was extremely limited and didn't work well (this was years ago though)

[–] mcx808@programming.dev 1 points 1 week ago
Select-String

It’s really useful too. You can either pipe in text or for example Get-ChildItem a directory of files and it will parse them all. As usual it returns a helpful object with properties like line number.

load more comments (3 replies)
load more comments (53 replies)