Question:

Which of the following shell command is used in MS-DOS to display contents of a file?

Show Hint

Logic Tip: TYPE in MS-DOS performs a similar function as CAT command in Linux.
Updated On: May 29, 2026
  • Type
  • CAT
  • del
  • date
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1:
In MS-DOS, the TYPE command is used to display the contents of a text file on the screen.

Step 2:
\[ \texttt{TYPE filename.txt} \] Example: \[ \texttt{TYPE notes.txt} \]

Step 3:

• CAT → Linux/UNIX command
• del → Deletes a file
• date → Displays or changes system date

Step 4:
Therefore, the MS-DOS command used to display file contents is: \[ \boxed{\texttt{TYPE}} \] Hence, the correct answer is: \[ \boxed{\text{(1) Type}} \]
Was this answer helpful?
0
0