McqkartGet appPractise

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

AType ✓ Correct
BCAT
CDel
DDate
Correct answer: (A) Type
Explanation

The TYPE command is the MS-DOS shell command used to display the contents of a text file on the screen.

MS-DOS, short for Microsoft Disk Operating System, is a single user command line operating system that was widely used on early personal computers.

In MS-DOS the TYPE command is followed by the file name, and for a long file the output can be paged using the MORE filter.

CAT is the command that displays file contents in Unix and Linux systems, not in MS-DOS, so it does not apply here.

The DEL command in MS-DOS deletes one or more files and does not display their contents.

The DATE command in MS-DOS displays or sets the system date and has nothing to do with file contents.

Other common internal MS-DOS commands include DIR to list files, COPY to copy files and REN to rename them.

Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.

Practise on Mcqkart →🎓 Book an expert →