PreviousNext
Help > OPERATING ENVIRONMENT > The DIR Command
The DIR Command

This is probably the most user environment command. It lists the files and directories on the current or other specified device.

IFS:/_dir

directory IFS:/

 ----A 2019/04/24 18:38         15    config.sys
 ----A 2019/04/11 11:29        734    hello.rxe
 ----A 2019/05/05 09:28         50    test1.rit
 ----A 2019/05/05 09:37         48    test1.rxe

   4 file(s),          847 bytes total
   0 dir(s),       8330795 bytes free

IFS:/_

This is a typical output of a DIR command. It lists all files and directories along with their date, size, and attributes. It also shows the amount of free space remaining on the drive.

DIR can accept parameters to specify particular storage device, a specific path to directory or file, or a standard file mask by using the ‘*’ and ‘?’ characters.

For example:

DIR *.rxe

will list the executable files in the current directory.

DIR ifs:/mydir1/prog*.rit

will list files that start with ‘prog’ and have file extension ‘.rit’, from directory ifs:/mydir1.