2025-03-14 21:59:59 -06:00
|
|
|
# dir
|
|
|
|
|
|
|
|
|
|
> List directory contents.
|
|
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/dir>.
|
|
|
|
|
|
|
|
|
|
- Show the contents of the current directory:
|
|
|
|
|
|
|
|
|
|
`dir`
|
|
|
|
|
|
|
|
|
|
- Show the contents of a given directory:
|
|
|
|
|
|
|
|
|
|
`dir {{path\to\directory}}`
|
|
|
|
|
|
|
|
|
|
- Show the contents of the current directory, including hidden ones:
|
|
|
|
|
|
|
|
|
|
`dir /a`
|
|
|
|
|
|
|
|
|
|
- Show the contents of a given directory, including hidden ones:
|
|
|
|
|
|
|
|
|
|
`dir {{path\to\directory}} /a`
|
|
|
|
|
|
|
|
|
|
- Show a bare list of directories and files, with no additional information:
|
|
|
|
|
|
|
|
|
|
`dir /b`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- Sort results by date/time, oldest first:
|
|
|
|
|
|
|
|
|
|
`dir /o:d`
|