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:

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:

Or

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

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

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/word-image.png" data-lazy- height="334" src="data:image/svg xml,” width=”780″>

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.

About the author

<img alt="Simran Kaur" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/IMG_9137-150×150.jpg6003c2ca45b7c.jpg" height="112" src="data:image/svg xml,” width=”112″>

Simran Kaur

Simran works as a technical writer. The graduate in MS Computer Science from the well known CS hub, aka Silicon Valley, is also an editor of the website. She enjoys writing about any tech topic, including programming, algorithms, cloud, data science, and AI. Travelling, sketching, and gardening are the hobbies that interest her.