Skip to content

Latest commit

History

History
24 lines (13 loc) 路 570 Bytes

get-childitem.md

File metadata and controls

24 lines (13 loc) 路 570 Bytes

Get-ChildItem

List items in a directory. More information: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/get-childitem.

  • List all non-hidden items in the current directory:

Get-ChildItem

  • List only directories in the current directory:

Get-ChildItem -Directory

  • List only files in the current directory:

Get-ChildItem -File

  • List items in the current directory, including hidden items:

Get-ChildItem -Hidden

  • List items in a directory other than the current one:

Get-ChildItem -Path {{path/to/directory}}