Terminal Dojo
Help العربية Sign inGet started

Command library / Get-ChildItem

Get-ChildItem

PowerShellDraft — pending expert review4 practice missions

List files and folders as objects

PowerShell's directory listing — but every result is a real object (with properties like Length and LastWriteTime), not text to be parsed. The path binds positionally; -Recurse walks into subfolders; -Force also shows hidden and system items.

Practice Get-ChildItem

Usage

Get-ChildItem [[-Path] <string>] [-Recurse] [-Filter <string>] [-Force]

Options and flags

Examples

Common mistakes

Get-ChildItem -Filter log -Recurse Get-ChildItem -Filter *.log -Recurse

-Filter takes a wildcard pattern, not a bare word — 'log' with no * only matches an item named exactly 'log'.

Related commands

get-process