News

Windows Devs Prefer PowerShell as CLI

The Windows Dev Docs team on Twitter recently posted an informal poll asking, "Well? What's your go-to command line?" with choices being the cmd Windows command prompt, PowerShell, WSL Bash and Azure Cloud Shell.

With 314 votes, the results are in: it's PowerShell, with 45.2 percent of the votes, followed by cmd (37.6 percent), WSL Bash (15.6 percent) and Azure Cloud Shell (1.6 percent).

Twitter Survey
[Click on image for larger view.] Twitter Survey (source: Twitter).

Here are some developer comments about the issue:

  • Opening WindowsTerminal in Administrator mode with Powershell, CMD, Bash and CloudShell 😎✅🚀🤘
  • cmd as powershell is getting slower and slower and bash WSL
  • honestly cmd; Like I'd like to say PowerShell but I've been using cmd for support stuff since like the 90s
  • It's always cmd. Even changed the defaults.
  • It really depends on what I'm planning to do. That's why Windows Terminal has a right-click menu when you pin it.

So one might wonder what's up with Azure Cloud Shell (different from Azure CLI), which apparently was the favorite choice of only five developers. It's not like it's old, having debuted way back in 2017. Interestingly, Microsoft documentation says it just lets developers use one of two other survey options: "Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell."

Direct Link Access Choice
[Click on image for larger view.] Direct Link Access Choice (source: Microsoft).

In fact, in accessing Azure Cloud Shell via direct link, a user must immediately choose one or the other, as depicted above.

Which to choose? The MSP360 site explains the differences in an article titled, "Azure CLI vs PowerShell: What Is the Difference?"

"PowerShell is a command shell and associated scripting language for the majority of Windows operating systems," the article says. "Bash is a Unix shell and scripting language for most Linux operating systems. The first version of PowerShell was introduced in 2006. The Bash shell appeared in 1989. PowerShell treats input and output as objects, while Bash always accepts input and output as text structures. The user interface of PowerShell is a command-line interface; that of Bash is a text command-line interface. PowerShell can be used on any version of Windows from Windows 97 onward. Bash is mainly used with Linux and Unix operating systems. PowerShell is a scripting language based on the .NET framework and C# programming language, while Bash is a scripting language based on the C programming language."

Main Differences Between Bash and PowerShell
[Click on image for larger view.] Main Differences Between Bash and PowerShell (source: LinuxConfig.org).

For more information, the LinuxConfig site earlier this year published an article titled, "Bash scripting vs PowerShell" in which is the handy comparison table above.

"What it boils down to is that Bash is great for administration and automation on Linux, and PowerShell fills that same gap but on Windows systems," the article concludes. "They both have some crossover, yet are at their peak on their native systems."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Microsoft Revamps Fledgling AutoGen Framework for Agentic AI

    Only at v0.4, Microsoft's AutoGen framework for agentic AI -- the hottest new trend in AI development -- has already undergone a complete revamp, going to an asynchronous, event-driven architecture.

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

Subscribe on YouTube