The objective of this article is to install Microsoft PowerShell on Ubuntu 20.04 Focal Fossa Linux. PowerShell is a task automation and configuration management framework, which includes the PowerShell scripting language.

In this tutorial you will learn:
  • How to PowerShell
  • How to start PowerShell
PowerShell on Ubuntu 20.04 Focal Fossa Linux
PowerShell on Ubuntu 20.04 Focal Fossa Linux

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Installed Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
Software PowerShell
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user

How to install PowerShell on Ubuntu 20.04 step by step instructions

  1. Access your terminal and execute the following command:
    $ snap install powershell --classic
    

  2. SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


  3. Start power shell from the terminal by running the pwsh command:
    $ pwsh 
    PowerShell 6.2.3
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    https://aka.ms/pscore6-docs
    Type 'help' to get help.
    
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions