In Chapter 1, Introducing PowerShell Core, we saw how native Linux commands were not convenience aliases in PowerShell on Linux, but the commands themselves. In this recipe, we will demonstrate using Linux commands at the PowerShell prompt. Remember, we used a Bash Terminal to run the ls -l and awk commands to list the contents of a directory and separate the columns in the output in the recipe, Comparing the outputs of Bash and PowerShell in Chapter 1, Introducing PowerShell Core. We will perform the same operation on the home directory, from within PowerShell, without using any of the PowerShell cmdlets.
Calling native Linux commands from PowerShell
Getting started
It is recommended that you have a Windows PC with PowerShell...