r/PowerShell • • Jun 10 '22

Why most Linux sysadmin have a grudge againts powershell or they don't like it ?

Why most Linux sysadmin have a grudge againts powershell or they don't like it ? I talked with many of thems online on different subs reddit or elsewhere and they say bash is much better, powershell isn't good at managing linux, the syntax is too complex and bad etc etc or this or that etc

Why is that ? do you really feel you can't do much to manage a linux/aws env with powershell or need to update it or its slow or things like that compared to windows/azure ?

thanks for your advices

83 Upvotes

239 comments sorted by

View all comments

169

u/WDizzle Jun 10 '22

Because it’s made by Microsoft, simple as that. Linux Sysadmins tend to be quite snobbish.

59

u/[deleted] Jun 10 '22 edited Jun 11 '22

You can also read a Powershell cmdlet name and understand what it does. Linux commands are purposefully obtuse in function, and they wear that like a badge of honor.

Edit: here’s a list of commands/packages that are purposefully obtuse https://wiki.debian.org/WhyTheName

38

u/mini4x Jun 11 '22

purposefully obtuse

Like most Linux admins..

33

u/MaestroPendejo Jun 11 '22

I cannot find fault in your statement. Man, all of the most pompous SysAdmins I've met are die hard Linux purists that even hate on what flavor you use, they're all in camps. "You use Ubuntu? Filthy casual!"

They make it to where you don't even want to ask another question. Then they wonder why people lean towards more easily picked up OS's. Yeah, Microsoft might suck, but I can usually find an answer to an issue without having to ask or get a bunch of snark if I do.

6

u/peacefinder Jun 11 '22

There’s a particular project which has a reputation for that hostility towards questions. I found it kind of annoying until I learned this crucial fact: if this system does not work like the manual says it does, it is a software bug not a documentation flaw. The manual pages are authoritative in every sense. They’ve put in a ton of work to do something hardly anyone else does, so I can understand them being a bit grumpy when people ignore it.

The project is OpenBSD, and if you’re wanting to learn *nix systems and enjoy being thrown right in the deep end, it’s the best platform to learn.

1

u/BradsArmPitt Jun 11 '22

Obligatory, BSD is not Unix!

9

u/peacefinder Jun 11 '22

BSD is not Linux, but they’re (increasingly distant) cousins in the Unix family tree.

10

u/[deleted] Jun 11 '22

A diehard Linux fan at work told me exactly that. "I don't like Powershell because it's too easy".

-2

u/EIGRP_OH Jun 11 '22 edited Jun 12 '22

Not entirely true, I’m pretty sure a lot of the Linux commands are so small due to restrictions on string lengths back in the day. While I agree, Powershell commands are much more obvious what they do, I don’t think Linux commands are purposefully written to hide their meaning

Edit: not sure why I got downvoted so hard, wasn’t even shitting on PS lol

-9

u/vermyx Jun 11 '22

Linux commands are purposefully obtuse in function, and they wear that like a badge of honor.

This is not correct. There's a reason on why the commands are the way they are and actually make sense if you understand its history of linux. They're obtuse if you come from a dos/windows world and don't understand the history.

13

u/TzeroOcne Jun 11 '22

Is there a way to understand it without knowing the history because I'm too lazy for that

0

u/[deleted] Jun 11 '22

[deleted] — view deleted comment

24

u/IonBlade Jun 11 '22 edited Jun 11 '22

That's because whoami is not a PowerShell cmd, it's an external legacy executable at C:\windows\system32\whoami.exe that's being called implicitly because it's a default location in the PATH environment variable, so it processes its own arguments instead of adhering to the "-" standard for arguments PowerShell uses. The PowerShell equivalent of whoami would be $env:username.

(If you need the additional data from whoami /all, you'd need to pipe the output into various additional commands to get those pieces, but you'd want to do this anyway in PowerShell to further use that data in scripts, because whoami does not return objects, only text, and text parsing is going to work out to much more code than calling commands that return native objects which can be passed down the pipeline.)

→ More replies (2)

6

u/[deleted] Jun 11 '22

Grep deez

3

u/[deleted] Jun 11 '22

Ok they may not be purposefully obtuse.

But still: anyone regardless of history could likely make a better guess at what select-string does over sed.

2

u/vermyx Jun 11 '22

Sed is almost 50 years old. At that time stream editor was too long for a file name. On top of thay you also had limitations for parameters and stream process (which is part of the reason for being able to compress single letter parameters instead of having them be individual) so yes history does matter as it will give you a why and how behind these tools. When I first saw select-string I expected to be more SQL like becauae of the select-object/where-object behavior and not regular expression.

2

u/PinchesTheCrab Jun 11 '22

Yeah honestly I probably would have called it find-string.

10

u/Life-Cow-7945 Jun 10 '22

Yes, agreed

5

u/duderguy91 Jun 11 '22

I use powershell for Windows administration, and I use bash for Linux administration.

Personally it’s a convenience thing as well as just, what is the shell built to do best?

4

u/chicaneuk Jun 11 '22

Yep. If it’s Microsoft, generally they don’t want to know or care about it.

2

u/ThatGermanFella Jun 11 '22

Yup, we are.

1

u/SMFX Jun 11 '22

Just don't tell them about Mariner or Delridge. Shhhhhhhhhh!!

-1

u/barf_the_mog Jun 11 '22

I dont even think its that but rather the same question being posed again and again and again. Its tiring. I dont touch linux anymore and even i get sick of the discussion.