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.



from Linux Hint https://ift.tt/3ieAyom

Post a Comment

0 Comments