Examveda

Which command is used to see the contents of a file?

A. Type

B. Copy

C. Ed

D. None of above

Answer: Option A

Solution (By Examveda Team)

The Type command in DOS is used to display the contents of a file on the screen.

It is used to view text files or files that can be interpreted as text, such as batch files, configuration files, or program source files.
The syntax is TYPE filename where filename is the name of the file whose contents you want to display.
It outputs the entire contents of the file directly to the command prompt or console.

Copy is used to copy files from one location to another, not to view file contents.

Ed (Editor) is a text editor in DOS for creating or editing text files, not for viewing existing file contents directly.

None of above is incorrect because the Type command is specifically used for viewing file contents.

Therefore, the correct answer is Option A: Type.

This Question Belongs to Computer Science >> Disk Operating System (DOS)

Join The Discussion

Related Questions on Disk Operating System (DOS)