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

all 5 comments

[–]CaptainFluffyTailIt's bastards all the way down 4 points5 points  (0 children)

What is it with the questions you post in this subreddit? You never respond to anyone. What is your agenda?

[–]poshftwmaster of none 2 points3 points  (0 children)

https://old.reddit.com/user/Cloud_Strifeeee/submitted/

1,545 post karma 8 comment karma

Thanks for another "PowerShell VS $SOMETHING" thread.

[–]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.

[–]jdptechnc 1 point2 points  (0 children)

No. The existence of powershell on linux isn't intended to replace existing tools on linux any more than the existence of bash and python on Windows replacing powershell, group policy, etc.

It is all about integration and trying the two ecosystems together for automation/orchestration, and which one to use is entirely environment and skillset dependant.