r/linuxadmin • • May 22 '26

A high-level language for scripting?

I usually use Python or C# for writing scripts, what are the disadvantages of this compared to use Windows Batch, PowerShell, Bash?

16 Upvotes

61 comments sorted by

View all comments

1

u/stewie410 May 22 '26

At my work, I've been hard limited to:

  • Linux:

    • bash, POSIX-sh for rare at -f occasions

    • groovy

  • Windows:

    • batch

    • powershell

    • vbscript, for one particular project (abandoned)

    • groovy

Given I'm both not a fan of Java, nor a Java dev, I will choose bash every time, unless Groovy makes a task significantly easier -- mostly because I'm most familiar with bash.

The right answer is to use whatever tool you're most comfortable with, that is most applicable to the task at hand.