DIR command is used to
A. Display a list of files in a directory
B. Display contents of files in directory
C. Display type of files in a sub directory
D. All of above
Answer: Option A
Solution (By Examveda Team)
In Disk Operating System (DOS), the DIR command is used to display a list of files in a directory. When you enter "dir" at the command prompt in DOS, it lists all the files and directories present in the current directory.Option B, "Display contents of files in directory," is not correct. The DIR command does not display the contents of files; it only lists their names, sizes, and other details.
Option C, "Display type of files in a sub directory," is also not correct. The DIR command lists files and directories but does not categorize them by type within a subdirectory.
Therefore, the correct answer is Option A: Display a list of files in a directory.
Related Questions on Disk Operating System (DOS)
In MS-Dos what command you will use to display system date?
A. Date command
B. Ver command
C. Disk command
D. Format command
While working with Ms-Dos which command transfers a specific file from one disk to another?
A. Copy
B. Diskcopy
C. Time
D. Rename
If you don't know the current time, which command will you use to display
A. Copy
B. Ver
C. Time
D. Format

Join The Discussion