ExamVeda
Login
Home
Disk Operating System (DOS)
?

DIR command is used to

Answer & Solution
Correct Answer: Option A
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.