mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 04:41:47 +00:00
30 lines
620 B
Plaintext
30 lines
620 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 o\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 o\directory}} /a`
|
|
|
|
- Show a bare list of directories and files, with no additional information:
|
|
|
|
`dir /b`
|