Why is the "dir" command not showing me certain folders?

ben.coffee picture ben.coffee · Sep 24, 2014 · Viewed 9.6k times · Source

I used the dir command in the Windows command prompt to display the list of files/folders in a directory. I noticed that it did not display a folder named tmp. However, I tried running dir in Powershell, and it did display the tmp folder in the output. Why did the Windows command prompt hide this folder from me?

Answer

Caffeinated picture Caffeinated · Sep 24, 2014

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

dir /a

this should do the trick.

source