NoteBy default, the dir command lists the files and directories for the. In the example below, we're in the Windows directory, so only files and directories in the Windows directory are shown.
C:Windows dirVolume in drive C has no label.Volume Serial Number is 6464-D47CDirectory of c:windows 06:24 AM. 01:24 AM addins 07:10 AM 19,326 PFRO.log 01:18 AM 32,200 Professional.xml 04:30 AM Provisioning 01:17 AM 320,512 regedit.exe 08:09 PM Registration 11:28 AM rescache 08:04 PM Resources 03:27 PM 1,251,944 RtlExUpd.dll. 11:09 PM 403 win.ini 07:10 AM WinSxS 01:18 AM 11,264 write.exe32 File(s) 839,433,436 bytes81 Dir(s) 341,846,921,216 bytes freeIf there are too many files listed in one directory, you can also show the files one page at a time by using the dir command with the /p switch. Dir /pYou can list files that only meet certain criteria by using in the dir command. Below are a few additional examples of the dir command with wildcards.
Dir.txtIn the above example, only files that have a of.txt are displayed. Dir a.In the above example, only files that begin with the letter 'a' are displayed. TipSee our definition for further information about this term and additional examples. Dir c:windowsIn the above example, this command lists the files in the C:Windows directory regardless of the current directory or drive.List the files in a Windows PowerShell directoryLike the Windows command line, Windows can use the dir command to list files in the current directory. PowerShell can also use the ls and gci commands to list files in a different format. List the files in a Linux and Unix directoryTo list files in a Linux or Unix command line, use the ls command, as shown below.
If you need additional examples and syntax on the ls command, see the page. /publichtml/rss# ls././ history.rss issues.rss jargon.rss newjarg.rss newpages.rss newqa.rss. TipWe recommend using ls -laxo to view files, as it gives you full file information and permission information in a more easy to ready format.You can list files that only meet certain criteria by using in the ls command. Below are a few additional examples of the dir command with wildcards. Ls.txtIn the above example, only files that have a of.txt are displayed. Ls r.In the above example, only files that begin with the letter 'r' are displayed. Ls aeiou.In the above example, only files that begin with a vowel (a, e, i, o, u) are displayed.