First Look Of PowerShell On Linux


PowerShell is now available on Linux and Open Source.

Since last one year I have been doing regular batches on PowerShell.  So moment this announcement came I thought of trying hands on it. So here are few baby steps into PowerShell on Ubuntu 14.04 VM.

Step 1 – Downloaded Package

https://github.com/PowerShell/PowerShell/releases/tag/v6.0.0-alpha.9

Ubuntu PowerShell - 0

Step 2 – Installed Dependencies

sudo apt-get install libunwind8 libicu52

Ubuntu PowerShell - 1

Step 3 – Installed PowerShell Package

sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb

Ubuntu PowerShell - 2

Ubuntu PowerShell - 3

Step 4 – Launched/Entered into PowerShell Console

type Powershell at terminal

type $PSHome

type $PSVersionTable

Ubuntu PowerShell - 4

Step 5 – Run PowerShell Commands

Get-ChildItem

Ubuntu PowerShell - 5

Get-Process

Ubuntu PowerShell - 6

$PROFILE

Get-ExecutionPolicy

Get-Module

Ubuntu PowerShell - 7

Get-Command

Ubuntu PowerShell - 8

Get-Command | Measure-Object

Ubuntu PowerShell - 9

Get-Help

Ubuntu PowerShell - 10

Exit

Ubuntu PowerShell - 11

Additional Reading

PowerShell Team Blog

PowerShell Team Celebration Video

PowerShell Magazine

PowerShell on Linux Installation Instructions

One thought on “First Look Of PowerShell On Linux

  1. Pingback: PowerShell ISE on Ubuntu 14.04 | mukesh notes

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s