## Name

MDIR — Display Module Directory

## Synopsis

`mdir` [ `e` ]

## Description

Displays the present module names in the system module directory, i.e., all modules currently resident in memory. For example:

    OS9: mdir

     Module Directory at 14:44:35
    D0      Pipe    OS9     OS9P2
    Init    Boot    DDisk   D1
    KBVDIO  TERM    IOMan   RBF
    SCF     SysGo   Clock   Shell
    PRINTER P       PipeMan Piper
    Mdir

If the “e” option is given, a full listing of the physical address, size, type, revision level, reentant attribute, user count, and name of each module is displayed. All numbers shown are in hexadecimal.

    OS9: mdir e

    Module Directory at 10:55:04

    ADDR SIZE TY RV AT UC   NAME
    ---- ---- -- -- -- -- --------
    C305   2F F1  1 R     D0
    F059  7EB C1  1 R     OS9
    F852  4F4 C1  1 R     OS9P2
    FD46   2E CO  1 R     INIT
    C363  798 E1  1 R   2 KBVDIO
    CAFB   38 F1  1 R   2 TERM

### Caution

Many of the modules listed by mdir are OS-9 system modules and not executable as programs: always check the module type code before running a module if you are not familiar with it!

For more information see: the section called “Loading Program Modules Into Memory”