Directory related commands Directory entries for the last 20 files or directories used are kept in a RAM cache. Thisincreases disk performance in accesses tofiles that are several directorylevels deep. Directorythrashingonfloppiesisdecreased. Thenumberofdirectoryentries to be cached can be altered in your mrdrivers file. Directory listings DIR [pathname1] [pathname2] .... DIRS [pathname1] [pathname2] .... Bothofthese commandsprint outthenames ofsomeorallofthefilesindirectories. If none of the optional pathnames are supplied then directory listings of all of the files and directories in the current directory are presented.
If some filenames are given then directory listings are given only for those files whose names appear in the filename list. The DIRS command is a short form listing which prints out file names only; the DIR command gives a long form listing. DIRS is readable even on displays narrower than the usual 80 characters. The command also summarises the bytes and the disk blocks used in that directory, the number of files in that directory, and the total blocks used and free on the entire device. If there is only one file, it says 1 file , not 1 files (unlike certain well known operating systems).
The long form directory listing of a file gives its attribute bits, the user ID number, length in bytes, load address (if any), time and date of the file, and its name. The attributes may be ‘D’ (a directory), ‘A’ (backed up file), ‘L’ (locked file), ‘R’ (read), ‘W’ (write) or ‘X’ (eXecute). All except the ‘D’ bits may be set or cleared using the filemode command. The read, write and execute attributes are ignored if you are user 0 (the default). The RWX attributes are provided to assist in managing a multiple user system (say a bulletin board or networked 1616), and apply only to user IDs other than user 0. See option .16 .56 for setting the file creation mask for the default attributes.
The file creation mask defaults to .56, which sets RWX permissions on, and A and L off, when a file is created. Set the setdate command for setting the time and date. See option .17 for enabling or disabling lower case filenames. Wildcards are very useful for obtaining partial directory listings. If for example you wished to obtain a directory listing of all the assembler source code files on your disk you would enter the command DIR *.s . Entering dir * lists the contents of all the directories immediately below your current directory, and then lists the contents of the current directory. Page 70 User Tutorial Manual 1616/OS Commands