snippetbashTip
dir — List directory contents. More information: <https://learn.microsoft.com/windows-server/administratio
Viewed 0 times
directorycommandcontentsdircliinformationmorelist
windows
Problem
How to use the
dir command: List directory contents. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/dir>.Solution
dir — List directory contents. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/dir>.Show the contents of the current directory:
dirShow the contents of a given directory:
dir {{path\to\directory}}Show the contents of the current directory, including hidden ones:
dir /aShow the contents of a given directory, including hidden ones:
dir {{path\to\directory}} /aShow a bare list of directories and files, with no additional information:
dir /bSort results by date/time, oldest first:
dir /o:dCode Snippets
Show the contents of the current directory
dirShow the contents of a given directory
dir {{path\to\directory}}Show the contents of the current directory, including hidden ones
dir /aShow the contents of a given directory, including hidden ones
dir {{path\to\directory}} /aShow a bare list of directories and files, with no additional information
dir /bContext
tldr-pages: windows/dir
Revisions (0)
No revisions yet.