powershellcmddirectory

Dir Command Not Showing all Folders


The dir command in the Windows command prompt did not display a folder named tmp when it did exist. But running the dir in Powershell did display the tmp folder.

Why did the Windows command prompt not show this folder?


Solution

  • You need to add the "show hidden" option to dir:

    dir /a