Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Index | Next >
Learning objective: Explain the use of the DIR command
In computing, dir (directory) is a command used for file and directory listing, specifically in the command line interface (CLI) of the RT-11, CP/M, VMS, DOS, OS/2, Singularity and Microsoft Windows operating systems. It is analogous to the Unix ls command. Because it is the primary means of displaying the files and directories on disk or other storage medium within a command window, the dir command is one of the most basic commands employed by users of the command line interface to MS-DOS and various versions of Windows. The dir command has existed as a DOS command since the initial release of MS-DOS. It is built into the DOS command shell, and is not provided as a separate standalone program. [Wikipedia]
DIR
If you enter "DIR" without any other arguments, you will get a listing of files and folders of your current working directory. Try it!
DIR [drive:][path]
The "DIR" can be directed to another drive and/or path by providing them when executing the command. (In the next unit we will cover the DIR command in more detail.)
DIR C:\
In this example, a listing of the files and folder will be displayed for the root "\" of the "C:" drive. Try it!
Other examples:
DIR c:\windows
DIR c:\windows\system32
Thinking: Why not have a DIR command for the entire drive?
Key terms: DIR, directory, files, path
Resources:
To maximize your learning, please visit these Web sites and review their content
to help reinforce the concepts presented in this section.
Quick links:
DIR Command @ Wikipedia
Notes on navigation: Click inside the frame to navigate the embedded Web page. - Click outside the frame to navigate this page to scroll up/down between the embedded Web pages. - Click on the frame title to open that page in a new tab in most browsers. - Click on the the "Reload page" link to reload the original page for that frame.
DIR Command @ Wikipedia |
Reload page
|
If frame is empty, click on the link to view the page in a new tab or window
Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Index | Next >