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

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube