This article will guide you on steps to install PowerShell on #Ubuntu. #PowerShell is a configuration management tool that brings the capabilities of Linux command-line interface (#CLI) control into the historically point-and-click Windows environment to manage Windows servers efficiently in virtual deployments.
With PowerShell and WSL, we can integrate Linux commands into #Windows just as if they were native applications.
No need to hunt around for Win32 builds of #Linux utilities or be forced to interrupt your workflow to drop into a Linux shell.
To check the PowerShell version installed in your system, you can use either $PSVersionTable or $host command.
To get a list of PowerShell commands:
1. Get-Command gets the commands from #PowerShell modules and commands that were imported from other sessions.
2. To get only commands that have been imported into the current session, use the ListImported parameter.
3. Without parameters, Get-Command gets all of the #cmdlets, functions, and aliases installed on the #computer.