List files in PowerShell
Returns file and directory objects, not text. Add -Recurse to walk subdirectories. gci works everywhere; the ls and dir aliases exist only on Windows, since PowerShell on Linux and macOS leaves those names to the native tools.
Shell: PowerShell · Category: files · Risk level: safe
What you provide
- path — Directory — leave blank for the current one
The exact syntax, a worked example and the flag reference are behind sign-in.
This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.