Displays the contents of a text file.
Use the TYPE command to view a text file without modifying it.
TYPE [drive:][path]filename [/P]
For information about displaying filenames and file sizes, see
the DIR command.
For information about displaying text files one screen at a time, see the MORE command.
Equivalent Linux BASH commands:
cat - Display the contents of a file.
If you display a binary file or a file created by a program, you may see strange characters on the screen, including formfeed characters and escape-sequence symbols. These characters represent control codes used in the binary file. In general, you should avoid using the TYPE command to display binary files.
If you want to display the contents of a file named HOLIDAY.MAR, type:
If the file you want to display is long, you can use the MORE command along with TYPE, as shown in the command, to display the file's contents one screen at a time:
TYPE HOLIDAY.MAR | MORE
Before using a pipe (|) for redirection, you should set the %TEMP% environment variable in your AUTOEXEC.BAT file.