Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Last active November 19, 2019 16:09
Show Gist options
  • Save linuxfemale/2f90f1ecbd0f122724f1f77c44eab306 to your computer and use it in GitHub Desktop.
Save linuxfemale/2f90f1ecbd0f122724f1f77c44eab306 to your computer and use it in GitHub Desktop.
Microsoft PowerShell on Ubuntu 18.04 LTS
#Video Tutorial:
https://youtu.be/3rHkL1so5mw
Microsoft PowerShell on Ubuntu 18.04 LTS
Microsoft PowerShell is a shell framework used to execute commands, but primarily it is developed to perform administrative tasks such as
Automation of repetitive jobs
Configuration management
PowerShell is an open-source and cross-platform project; it can be installed on Windows, macOS, and Linux. It includes an interactive command-line shell and a scripting environment.
##Installation via Package Repository - Ubuntu 18.04
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Enable the "universe" repositories
sudo add-apt-repository universe
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh
PS /home/vagrant>
Get-ChildItem /
dir
##Installation via Direct Download - Ubuntu 18.04
sudo wget https://github.com/PowerShell/PowerShell/releases/download/v6.2.3/powershell_6.2.3-1.ubuntu.18.04_amd64.deb
sudo dpkg -i powershell_6.2.3-1.ubuntu.18.04_amd64.deb
sudo apt-get install -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment