In Chapter 1, you used the dir command to obtain a listing of all the files and folders in a directory. This works because there is an alias built into Windows PowerShell that assigns the Get-ChildItem cmdlet to the letter combination dir.
In a Windows PowerShell console, enter the Get-ChildItem cmdlet followed by the directory to list. (Remember that you can use tab completion to compete the command. Type get-ch and press Tab to complete the command name.) Here is the command:
Windows PowerShell is not case sensitive, therefore get-Childitem, Get-childitem, and Get-ChildItem all work the same way, because Windows PowerShell views all three as the same command. ...