3 ms·
Most of my big complaints about syntax are related to the shell-ness of PowerShell. For example, when comparing things, I really want to use '<' and '>' rather
by criddell 11y ago
Most of my big complaints about syntax are related to the shell-ness of PowerShell. For example, when comparing things, I really want to use '<' and '>' rather than -le and -gt.
Generally though, the syntax is different but once you learn it, it's mostly fine and sometimes the text-based nature of Unix commands means you have to do a lot more reg-exing.
For example, compare these two:
ps -ef | grep "chrome" | awk '{print $2}' | xargs kill
vs
ps -name chrome | kill
Of course it's just a matter of preference, but I prefer the the PowerShell version.
- gnaritas 11y agoUm... pkill chrome, still prefer bash/gnu tools. The bazaar has far more tools, you just have to find the right one. > and sometimes the text-based nature of Unix commands means you have to do a lot more reg-exing. That's a feature that has far more upside than downside.
- criddell 11y agoI didn't know about pkill, thanks! My point still stands. They are different but (IMHO) both excellent. Ubuntu on Windows may eventually reach parity with PowerShell but until then, PowerShell is worth knowing (especially if you follow Microsoft's advice and run servers without the GUI installed).
- gnaritas 11y agoI agree it's worth knowing, I just don't like it. My prefferred avenue will be porting all .Net stuff to Linux servers and just getting rid of all Windows servers as it becomes possible. .Net is great, C# is great, Windows isn't and I'm glad to see Microsoft's new CEO isn't blind to that reality.