![Powershell Core 6.2 Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/704/36698704/b_36698704.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
Let's perform the following steps:
- Open PowerShell.
- Execute Get-UICulture, followed by Get-Process. Notice that the default formatting for these two cmdlets seems to be tabular, shown as follows:
![](https://epubservercos.yuewen.com/57DF63/19470379901495806/epubprivate/OEBPS/Images/42830541-4530-4b09-aed0-7b5182165ef9.png?sign=1739236699-lYU142bf4VwkZuCBaQL3RqP59KhuI8fo-0-1a8c68e21f92e6df709f26025a1126f9)
- Execute Get-TimeZone, followed by Get-Uptime. This time, the default output formatting seems to be a list, shown as follows:
![](https://epubservercos.yuewen.com/57DF63/19470379901495806/epubprivate/OEBPS/Images/cd477be9-50da-420a-af72-c7a65c046464.png?sign=1739236699-lPMQx3GD33Bz2vmxAW1W7NIeKylhX2jS-0-edd7234060f5399d4b69283d32035017)
- Now, execute Get-ChildItem -Path *DoesNotExist*. With this cmdlet, you might get no output back at all.
- Lastly, execute New-Item -Name file -Value 'Test file'. While this cmdlet doesn't use the verb Get, it still returns output to work with.