Forrest logo
back to the Get-ChildItem tool

get-childitem:tldr:6d320

get-childitem: List items in the current directory, including hidden items.
$ Get-ChildItem -Hidden
try on your machine

The command "Get-ChildItem -Hidden" is a PowerShell command used to retrieve hidden items in the specified location or directory.

Here's a breakdown of each component of the command:

  • "Get-ChildItem": This is a cmdlet (short for command-let) used in PowerShell to list the items (files and directories) in a specific location.
  • "-Hidden": This is a parameter that modifies the behavior of the "Get-ChildItem" cmdlet. By including "-Hidden" as a parameter, it instructs the command to retrieve only the hidden items within the specified location. Hidden items are the ones whose "hidden" attribute is set.

In summary, executing the "Get-ChildItem -Hidden" command will list all the hidden items in the current directory (or the directory you specify), including hidden files and directories.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the Get-ChildItem tool