PowerShell Core for Linux Administrators Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

In this recipe, we are going to pick one example to show you how simple and efficient it is to handle file metadata using PowerShell, primarily since the output is an object. We will list the files and folders within our home directory, along with the date and time of modification using both ls in Bash and Get-ChildItem in PowerShell.

We will use PowerShell to run the Linux commands as well.