- A directory(DIR) is a directory under which the user and the operating system manage files. A directory is a structured list of folders or files. It contains information about the files stored, their file size and type, and the date they were created or modified. A directory can be a table of contents of a magnetic storage medium such as a hard disk or a USB stick. Directories, which were formerly also called catalogs, are not only pure tables of contents, but also provide a range of other information on request, including the file size in bytes, the number of subfiles, the path on which they were accessed, the date and time of creation or modification, and the type of file (e.g. program file, text file, batch file, command file, or system file).
- In the DOS operating system, the abbreviation DIR is a command with which the directory can be output.