![]() I want to take a moment to divert from the instructions to mention a subtle but important difference in running PowerShell Core on Linux versus on Windows. PowerShell Core on Linux vs PowerShell Core on Windows This takes you to the most current production version of PowerShell as of this writing, version 6. ![]() However, if you want more info and download links you can go here. I would assume you are following along setting up PowerShell on an Ubuntu based distro that supports snaps. Simply enter $PSVersionTable on the command line and press enter to return the version number and other info for your current PowerShell session. PowerShell also has its built-in $PSVersionTable variable. For example, enter Get-ChildItem to get a list of the files in the directory. First, you can go to the Ubuntu start menu, find the PowerShell icon, and launch it.Īlternatively, from in the terminal window, you can enter pwsh and launch the PowerShell command line.įrom here, you can enter the majority of PowerShell commands you’ve come to know and love. Now that it is installed, you can launch PowerShell in one of two ways. By adding -classic to the end of the snap command, you are permitting PowerShell to have access to system-level data and commands. PowerShell, however, is meant to do exactly those things. Most snaps install with restrictions that prevent them from diving into system data or execute system-level tasks. The last part of the command, -classic, is quite important. You will want to install a snap, and the name of the snap is powershell. The basics of the snap command are straight forward. Using the software store via the GUI may seem easy, but PowerShell lovers are supposed to be command-line geeks! So, close the software store and return to the terminal. There may be other items listed, but they aren’t relevant to this exercise. The powershell-preview item will install the next version of PowerShell, the version still in beta. The first item, powershell, will install the most current version of PowerShell, 6.2.3 as of this writing. At the top, next to the Updates button, is the search icon it looks like a magnifying glass. This will launch the Ubuntu Software store. In Ubuntu, click on the big orange briefcase icon in the left-side toolbar. The first is via the Ubuntu Software store. There are two methods for doing the install. ![]() Now you’re finally ready to install PowerShell. You’ll then see how to use PowerShell to work with SQL Server as it runs in the Docker container. This will create a foundation for a future article, in which you’ll see how to install Docker, then SQL Server into your VM. In this article, you’ll finish setting up your development environment by installing PowerShell, Visual Studio Code, and other tools into the Ubuntu VM. It demonstrated how to install VirtualBox and generate an Ubuntu 19.10 virtual machine. Part 1 of this series covered the need for creating a Linux development environment for testing and learning.
0 Comments
Leave a Reply. |