What Is DIR Command?

DIR command is a Command Prompt command.

It shows the file name, size, last modification date and time of each file.

dir command

DIR command is available in Command Prompt of all Windows systems incl.

Older versions of Windows also have the DIR command but have fewer options.

The DIR command is also included in all versions of MS-DOS.

30 Useful Windows Run Commands to Fast Open Apps/Settings

you could punch in DIR command itself to display the files and folders in the current directory.

The DIR command can be executed alone.

you might use Windows Run commands to fast access tools and tweaks on your Windows 10/11 computer.

How to Hide/Unhide a Folder/File in Windows 10 with CMD

Heres the list of 30 useful Run commands you should know.

you’re able to add a specific file attribute after/Ato only display files with the specific file attribute.

you’re free to add a specific file attribute after /A to display certain files.

How to Open a File/Folder in Command Prompt (CMD) Windows 10

it’s possible for you to check the examples below.

dir: list all files and directories in the current directory.

dir *.exe: list all files with the file extension .exe.

dir *.exe *.doc: list all files with the file extension .exe and .doc.

dir /ad: list all directories in the current path.

dir /ash: show hidden system files.

dir /a-d: list all files but no directories.

dir /a:r-a: display all read-only non-achieve files.

Learn how to hide a folder or file in Windows 10 using CMD.

Check how to hide a folder/file or show hidden files Windows 10 with attrib command line.

DIR /O

you might use this command to display results in a sorted order.

you could add a letter code below after the /O switch to sort the displayed result.

Learn how to open a file/folder in Command Prompt (cmd) on Windows 10.

Step-by-step guide is included.