![](/rp/kFAqShRrnkQMbH6NYLBYoJ3lq9s.png)
Install PowerShell on Linux - PowerShell | Microsoft Learn
2023年9月5日 · There are three other ways to install PowerShell on Linux, including Linux distributions that aren't officially supported. You can try to install PowerShell using the PowerShell Snap Package. You can also try deploying PowerShell binaries directly …
Installing PowerShell on Ubuntu - PowerShell | Microsoft Learn
2025年1月29日 · PowerShell 7.2 and newer supports running on Ubuntu using 32-bit Arm processors. Use the binary archive installation method of installing PowerShell that's described in Alternate ways to install PowerShell on Linux .
Alternate ways to install PowerShell on Linux - PowerShell
2025年1月27日 · After the package is installed, run pwsh from a terminal. Run pwsh-preview if you installed a preview release. There are three other ways to install PowerShell on a Linux distribution: Install using a Snap Package; Install using the binary archives; Install as a .NET Global tool; Snap Package
Installing PowerShell on Red Hat Enterprise Linux (RHEL)
2025年1月29日 · PowerShell 7.2 and newer supports running on RHEL using a 64-bit Arm processor. Use the binary archive installation method of installing PowerShell that's described in Alternate ways to install PowerShell on Linux .
Installing PowerShell on Debian - PowerShell | Microsoft Learn
2025年1月29日 · These Linux software packages are hosted on the Linux package repository for Microsoft products, https://packages.microsoft.com, also known as PMC. Installing PowerShell from PMC is the preferred method of installation.
PowerShell@2 - PowerShell v2 task | Microsoft Learn
2025年1月29日 · Use this task to run a PowerShell script on Linux, macOS, or Windows. Note By default, PowerShell v2 uses PowerShell Core for Linux agents and Windows PowerShell for Windows agents.
Running commands in the shell - PowerShell | Microsoft Learn
2025年1月23日 · Any native command can be run from the PowerShell command line. Usually you run the command exactly as you would in bash or cmd.exe . The following example shows running the grep command in bash on Ubuntu Linux.
Install WSL | Microsoft Learn
2024年11月19日 · Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
Basic commands for WSL | Microsoft Learn
2023年11月28日 · The WSL commands below are listed in a format supported by PowerShell or Windows Command Prompt. To run these commands from a Bash / Linux distribution command line, you must replace wsl with wsl.exe. For a full list of commands, run wsl --help.
PowerShell differences on non-Windows platforms - PowerShell
2024年7月18日 · PowerShell on Linux and macOS uses .NET Core, a subset of the full .NET Framework on Microsoft Windows. As a result, scripts that run on Windows might not run on non-Windows platforms because of the differences in the frameworks.