Search code examples
powershellcmddirhidden-files

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


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?


Solution

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

    dir /a
    

    this should do the trick.

    source