CMD, Powershell, Bash - What’s the difference?

Asked

Viewed 16,141 times

9

There are differences between them, which?

I’m talking about Ubuntu’s Bash.

I’m curious because to me they seem to do the same thing!

1 answer

14


Essentially they do, all are system administration utilities for processing commands started from a text-based user interface (console). It is used to call other utilities, initiate processes and automate procedures through a language of script. The approach and ability of each differ.

Bash is the best known utility of this type used in POSIX systems (Linux, BSD, including Macos, etc. - is not specific to Ubuntu). It is optionally available on Windows 10 as of the 2016 update. When using Linux the two options below are not available, so the comparison is not much needed. It would be more interesting a comparison with command processors available on Linux.

Bash no Windows

CMD, also known as prompt command, is the Windows utility. It is simple and works, but leaves to be desired for more sophisticated tasks.

Powershell is a new tool available on Windows and more recently on Linux and Macos extremely powerful, flexible and extensible (cmdlet). Uses a. NET-based programming language and infrastructure (Core in newer versions). It was developed based on the experiences of the various processors of script for previously used operating systems, including the two above. He came to end the idea that everything in Windows is better done by the GUI. It is quite consistent and simpler to use, even though it is much more powerful. It is a bit more aimed at administrators with good programming ability. Now it works on other operating systems like Linux.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.