1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 07:26:04 +02:00
tldr/pages/windows/dir.md
Michael D 4b8f18a924
windows/dir: update page (#10913)
* windows: dir: add "bare" format

Add "dir /B" to the cheat sheet. It is quite useful for creating file
lists, playlists and the like, without having to manually mangle the
output.

* Change parameters to lowercase and reword description
2023-10-11 09:51:11 +02:00

24 lines
528 B
Markdown

# 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`