{"id":4,"date":"2020-03-24T00:00:00","date_gmt":"2020-03-24T00:00:00","guid":{"rendered":"http:\/\/inre.me\/?p=1"},"modified":"2020-10-12T22:13:35","modified_gmt":"2020-10-12T21:13:35","slug":"what-are-windows-terminal-powershell-core","status":"publish","type":"post","link":"https:\/\/inre.me\/what-are-windows-terminal-powershell-core\/","title":{"rendered":"What are Windows Terminal, PowerShell, etc."},"content":{"rendered":"\n

There was a time when Microsoft considered open source an enemy. Now they are releasing open source software left and right and even using open source as a core part of their strategy. This slow change of strategy has left us with a few different open source software by Microsoft, that occupy the same space.<\/p>\n\n\n\n

This can be confusing (at least to me), so this is the summary of what is happening in the world of terminal, shell, command line, etc. on Windows.<\/p>\n\n\n\n

Background Info and Terminology<\/h2>\n\n\n\n

Here is a bit of background info to understand why all of this is happening.<\/p>\n\n\n\n

The fundamental reason is developer, developers, developers<\/a>. Microsoft needs to get developers to use their services: they want people to develop on Windows and to use Azure. So, it is trying to make life easier for them and become the best choice for developers.<\/p>\n\n\n\n

.NET Core is the Only Future<\/h3>\n\n\n\n

Microsoft originally developed the .NET Framework<\/strong> to run software on Windows. It was not open source. Ximian, then Xamarin (now owned by Microsoft) developed Mono<\/em>, an open source implementation of the .NET Framework that could run on Linux and MacOS. There was a clear separation.<\/p>\n\n\n\n

During the course of the years, Microsoft open sourced almost everything, from the language (C#) to a new open source alternative to the .NET Framework called .NET Core<\/strong>. Now we are to a point that the Windows-only .NET Framework is a legacy platform, .NET Core will become .NET 5<\/a> and the only actively developed .NET platform.<\/p>\n\n\n\n

The .NET Framework will be actively maintained, but it is not the platform you should develop on. Given the investment Microsoft has made on open source this is a somewhat obvious development, but it still feels weird for us older developers.<\/p>\n\n\n\n

Shell<\/h3>\n\n\n\n

A shell is a user interface for the operating system<\/strong>. A text shell is a command-line interface (CLI)<\/em>, as opposed to a Graphical User Interface (GUI)<\/em>. A text shell\/CLI is also known as a command-line interpreter. You execute commands using a shell.<\/p>\n\n\n\n

Examples of text shells are: Bash and the Windows Command Prompt (or CMD).<\/p><\/blockquote>\n\n\n\n

Terminal Emulator<\/h3>\n\n\n\n

The definition of a terminal emulator is less clear, for the simple reason that the concept of terminal<\/strong> has lost importance. There was a time when people sit in front a keyboard and screen, but the rest of the computer was somewhere else. You typed in your terminal, but the work was executed on the mainframe. This system of keyboard, screen and their software was a terminal. A terminal emulator<\/strong> is a program that replace that, it takes the stuff you type and pass it to the shell.<\/p>\n\n\n\n

Examples of terminal emulators are: konsole, GNOME Terminal and Windows Console.<\/p><\/blockquote>\n\n\n\n

Windows Terminal, PowerShell, Command Prompt, etc.<\/h2>\n\n\n\n

Now that the foundation is laid on, everything should be clear.<\/p>\n\n\n\n

Microsoft developed the Command Prompt<\/strong> for Windows and DOS. It is a text shell. There are actually several versions that are mostly compatible, but this is beyond the point here. It is not very good, but it keeps working.<\/p>\n\n\n\n

Much later Microsoft created Windows PowerShell<\/strong> based on the .NET Framework. PowerShell is a text shell, but also a scripting language. It was a Windows-only software. Then they developed it further in PowerShell Core<\/strong>, which is based on .NET Core, cross-platform and open-source. The last version of the original PowerShell is 5.1, it is still maintained, but legacy software.<\/p>\n\n\n\n

Update: actually this all changed again in July 2020. Now PowerShell<\/strong> 7 is the heir of both PowerShell Core and Windows PowerShell.<\/em> It is cross-platform, but with all the power of Windows PowerShell on Windows.<\/em><\/p>\n\n\n\n

Finally, Windows Terminal<\/strong> is the open source terminal emulator designed for Windows. It supports all kinds of shells: the Command Prompt, PowerShell (old and Core), SSH, the Windows Subsystem for Linux (WSL) and the Azure Cloud Shell.<\/p>\n\n\n\n

Here is a short table.<\/p>\n\n\n\n

Name<\/th>What<\/th>Should I Start Using it?<\/th><\/tr><\/thead>
Windows Command Prompt<\/td>Old shell for Windows<\/td>No<\/td><\/tr>
Windows Console<\/td>Old terminal emulator for Windows<\/td>No<\/td><\/tr>
Windows PowerShell<\/td>Oldish shell based on .NET Framework<\/td>No<\/td><\/tr>
PowerShell Core<\/td>Newish cross-platform shell based on .NET Core<\/td>No<\/td><\/tr>
PowerShell 7<\/td>Latest cross-platform shell with more power on Windows<\/td>Yes<\/td><\/tr>
Windows Terminal<\/td>New terminal emulator for Windows<\/td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n \n\n
\n\n
\n