In CMD, to list files of a specific type, use dir *.ext, replacing *.ext with the desired file extension. This displays all matching files in the current directory. In PowerShell, the command Get-ChildItem -Filter *.ext lists files of a specific type, with the -Filter parameter allowing you to specify the desired file extension or pattern.