PowerShell to be Available at Linux Now

The tool is based on the .NET platform and works not only on the desktop, but also in the cloud, as well as on the "IoT" devices
23 July 2018   1293

The open source command-line shell from Microsoft called PowerShell Core received a snap-version for Linux OS. The tool is based on the .NET platform and works not only on the desktop, but also in the cloud, as well as on the "Internet of things" devices.

PowerShell is designed specifically for administrators of hybrid cloud systems and users who want to automate the management of the operating system and its programs.


PowerShell Key Features

Self-sufficient packages in the snap format work natively on popular Linux distributions, are updated automatically and provide a high level of security for users. According to the authors of the project, the snap-version is installed easier than classic applications, receives direct updates from Microsoft and provides flexibility when working with multiple operating systems.

Microsoft also published a preview version of the program for everyone who wants to try out the new features first. It is distributed as a separate package, so it can be used along with a stable release.

You can download both versions with the snap install powershell -classic and snap install powershell-preview -classic commands.

PowerShell 7.0 to be Available

The new major version of the cross-platform automation tool and configuration framework brings a lot of changes and improvements
05 March 2020   181

Microsoft introduced the release of the PowerShell 7.0 command shell, the source code of which was opened in 2016 under the MIT license. A new shell release has been prepared not only for Windows, but also for Linux and macOS.

PowerShell is optimized to automate command line operations and provides built-in tools for processing structured data in formats such as JSON, CSV and XML, and also supports REST APIs and object models. In addition to the command shell, an object-oriented language for scripting and a set of utilities for managing modules and scripts are offered. Starting with the PowerShell 6 branch, the project has been developing using the .NET Core platform. By default, PowerShell transfers telemetry with the OS description and version of the program (to disable telemetry, you must set the environment variable POWERSHELL_TELEMETRY_OPTOUT = 1 before starting).

Among the innovations added in PowerShell 7.0:

  • Support for channel parallelization using the "ForEach-Object -Parallel" construction;
  • Conditional assignment operator "a? B: c";
  • Conditional stream start operators "||" and "&&" (for example, cmd1 && cmd2, the second command will be executed only if the first is successful);
  • Logical operators "??" and "?? =", which return the right operand if the left operand is NULL (for example, a = b ?? "default string" if b is null, the operator will return the drain with the default value).
  • Improved system for dynamic error viewing (Get-Error cmdl);
  • Layer for compatibility with modules for Windows PowerShell;
  • Automatically display notification of a new version;
  • Ability to call DSC (Desired State Configuration) resources directly from PowerShell.

Get more at the official blog and GitHub.