DIR CMD (Directory (list files and folders))
List files and folders in a directory, with optional filters. Syntax: dir [path] [/a] [/s] [/b]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: dir [path] [/a] [/s] [/b]
- Brief: List files and folders in a directory, with optional filters.
- Example: dir C:\Windows\System32 /b | more
- Tip: dir /s searches subfolders; dir /a shows hidden and system files.
Reference: learn.microsoft.com