System Grab Bag

View all TLDR pages from Windows (or from all pages)

Get-ChildItem

List items in a directory. This command can only be used through PowerShell. More information: https://learn.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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.