1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 08:55:35 +02:00
tldr/pages/windows/get-childitem.md
K.B.Dharun Krishna a8ec294384
style-guide, pages/windows/*: add note for PowerShell descriptions (#12904)
*: add note for pwsh descriptions

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-06-07 12:04:32 +02:00

629 B

Get-ChildItem

List items in a directory. Note: 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}}