How To Install And Use PowerShell In Linux

Install And Use Powershell In Linux

How To Install And Use PowerShell In Linux
Windows PowerShell is an amazing setup administration and computerization system. It's included a charge line shell and.NET-based scripting Langauge. Administration use PowerShell as a method for managing Windows, Linux, and Networked client 

In 2016, Microsoft publicly released PowerShell and appeared a cross-stage emphasis. This .NET Core form offers Linux and MacOS installers. Since framework managers regularly utilize Linux, PowerShell on Linux brought loads of new usefulness. In spite of the fact that it's basically a similar program, there are key contrasts, for example, the capacity to run standard Bash summons in Linux PowerShell. 



So today, In this article we will teach you how to properly install,  and use PowerShell on Linux!

What Is PowerShell?


PowerShell is an assignment robotization and arrangement administration structure from Microsoft, comprising of a charge line shell and related scripting language based on the.NET Framework. PowerShell gives full access to COM and WMI, empowering overseers to perform managerial assignments on both nearby and remote Windows frameworks and additionally WS-Management and CIM empowering administration of remote Linux frameworks and system gadgets.



Installing PowerShell


Download the appropriate PowerShell on Linux from the link below. You can find installers for Ubuntu 14.04  and 16.04, Red Hat Enterprise Linux 7 and CentOS 7, and MacOS. Begin by downloading the right installer for your working framework. We are running Ubuntu so I downloaded the Ubuntu DEB. However, the installer ought to work for any Ubuntu subsidiary like Lubuntu and Xubuntu.


Ubuntu clients will have a DEB bundle while CentOS and RHEL clients will utilize an RPM. The MacOS installer is a PKG.
Downloading PowerShell
  • Since PowerShell is a command line utility, we should first install PowerShell by using Linux command. Note where your PowerShell DEB is downloaded. Ordinarily, this will be the default "Downloads" index. Once you've found the bundle, run the command given below:
sudo apt-get install libunwind8 libicu55
sudo dpkg -i /path/to/your/powershell.deb
replace the "Path To" line with the right envelope way and correct DEB. we utilized the Ubuntu 16.04 bundle and the DEB was situated in my "Downloaded" directory. so my command looks like this:
sudo apt-get install libunwind8 libicu55
sudo dpkg -i /home/PawnKdka/Downloaded/powershell_6.0.0-alpha.14-1ubuntu1.16.04.1_amd64.deb

We're installing with super user permission, therefore you'll be prompted for your password during the installation.
Password Prompt
Be patient You'll see a few lines about preparing to unpack PowerShell and setting up PowerShell. When this closes, you're ready to start utilizing PowerShell.

By following this article we hope you guys have installed PowerShell in Linux. If you faced any problem during installation, comment below we will try our best to help you.

Author:

Facebook Comment