PowerShell 7 for Linux and macOS
It is commonly said that Linux is the most popular operating system for servers, and while this is true, it doesn’t acknowledge that there are nearly as many types of Linux as there are actual servers. Whereas Windows and macOS are closely engineered and maintained by companies that are concerned that everybody should be running homogenous, secure, and often forcibly updated code, the Linux world is far more unrestricted, with a multiplicity of free, open source, and often barely maintained variations that seem to hang around on servers for years or sometimes decades. In this chapter, we’re going to look at how we can use PowerShell on some of the more common varieties of Linux; in our case, Ubuntu and CentOS, a free version of Red Hat Enterprise Linux (RHEL).
We’re going to start by looking at how we can get access to a Linux machine to practice on; without that, this chapter would be pretty boring. Once we’ve got a machine...