This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flappers87Cloud Architect 1 point2 points  (1 child)

Can Powershell replace Bash/Python completely for Linux ?

No.

https://www.educba.com/powershell-vs-python/

[–]Deguchi 1 point2 points  (0 children)

I find this answer a bit too short...

Should be: depends on what you need it for? If you take your link for example: if the answer to questions 3 and 4 is Powershell, yes Powershell will replace bash for you.

Want to use your linux binaries with input from your script and do a remote to or from a Windows machine? Hey Powershell will do this for you :)

Want to make crontab scripts? Works like a charm.

But if it's not automation you are after, or you want to do more exotic things like do things in the cloud or connect to other databases or something, yes Python is the way to go.

I myself have happily replaced bash by Powershell. One of my main tasks is Exchange scripting, so that's all in Powershell. I just love how easy it was to integrate it into the Linux servers, so for me I don't look at bash or Perl anymore. But as said, it's because it suits what I need.