Debian

How to Install Microsoft PowerShell on Debian 10?

How to Install Microsoft PowerShell on Debian 10?
Microsoft PowerShell is an open-sourced automation platform that offers scripting environment cross-platform support interactive command-line shell. The previous version of PowerShell was only available for Windows, but the new version now supports Linux because of its snap version. Snaps are containerized applications that provide a single package that is available on Linux distributions.

There is a specific procedure to install Microsoft PowerShell on Linux. If you are a Debian 10 user, then read our article to learn how to install Microsoft PowerShell on Debian 10 without any errors.

How to Install Microsoft PowerShell on Debian 10?

First, open the Linux terminal. Click on the top left corner of the desktop and search “terminal,” then launch it.

Now, install the snapd in the system using the following command in the terminal:

$ sudo apt install snapd

Debian 10 has pre-installed snapd, or you can use the above command if you have deleted Snap from the system accidentally.

After executing the command, the system prompts to enter the sudo password to download snapd in the system.

Once you install snapd successfully, install the PowerShell by executing the following command in the terminal:

$ snap install PowerShell --classic

We have used a -classic command in the above command line because it is required as the snapd is published with classic confinement.

After the successful installation of Microsoft PowerShell on Debian 10, open it from the application menu or use the terminal for it.

Execute the following command in the terminal to launch PowerShell quickly:

$ PowerShell

Or

$ pwsh

In case you want to view the version of your Microsoft PowerShell installed in the system, execute the command below in the PowerShell prompt:

$PSVersionTable

Finally, the system will show you a result like this:

Conclusion

Linux already offers different command shells such as bash, zsh, and dash, but Microsoft PowerShell is a fantastic tool best suited for those users who have switched from Windows to Linux. We have covered complete detailed information to install Microsoft PowerShell On Debian 10.

Emulate Mouse clicks by hovering using Clickless Mouse in Windows 10
Using a mouse or keyboard in the wrong posture of excessive usage can result in a lot of health issues, including strain, carpal tunnel syndrome, and ...
Add Mouse gestures to Windows 10 using these free tools
In recent years computers and operating systems have greatly evolved. There was a time when users had to use commands to navigate through file manager...
Control & manage mouse movement between multiple monitors in Windows 10
Dual Display Mouse Manager lets you control & configure mouse movement between multiple monitors, by slowing down its movements near the border. Windo...