Other Backend Technologies

What is the difference between CMD, PowerShell, and Bash?

  • CMD
  • PowerShell
  • Bash
  • GitBash
  • CLI

2 comments

Hi @Arun, thank you for researching and sharing your findings here. It is right. Good website link on the difference between CMD, PowerShell, and Bash!

Answer taken from:

https://www.servertribe.com/difference-between-cmd-vs-powershell-vs-bash/

Summary of answer:

1) What is it?
CMD - Is the command line for Microsoft Windows operating system, with command-based features.

Powershell - Is a task-based command-line interface, specifically designed for system admins and is based on the .Net Framework.

Bash - Is a command-line and scripting language for most Unix/Linux-based operating systems.

2) What forms do the Input and Output take?
CMD - The generated output is in the form of characters.

Powershell - Treats input and output as objects.

Bash - Like CMD, Bash also treats input and output as text structures.

3) What sort of Interface?
CMD - Uses a text-based command-line interface.

Powershell - Has a more interactive graphical command-line interface CLI.

Bash - Has a simple user interface that is also text-based like CMD.

4) Where can you find it?
CMD - Comes as a default program in all the windows operating systems.

PowerShell - In windows 2007 and above, Powershell is a built-in program. Before that, it has to be installed as a separate program.

Bash - Linux and Unix systems mostly use Bash, and it is used from the very first day in Linux and Unix operating systems.