TYPE (DOS command)

In computing, type is a command in various command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS/4NT and Windows PowerShell used to display the contents of specified files on the computer terminal. The analogous Unix command is cat.

Implementations

Description of the TYPE command of RT-11SJ displayed on a VT100.

The command is available in the operating systems RT-11,[1] OS/8,[2] TOPS-10,[3] TOPS-20,[4] VMS, CP/M,[5] MP/M,[6][7] TRIPOS,[8] AmigaDOS,[9] DOS, FlexOS,[10] SpartaDOS X,[11] 4690 OS,[12] OS/2, Microsoft Windows,[13] ReactOS, AROS,[14] and SymbOS.[15]

It is also available in the open source MS-DOS emulator DOSBox and the EFI shell.[16]

In Windows PowerShell, type is a predefined command alias for the Get-Content Cmdlet which basically serves the same purpose. TYPE originated as an internal command in 86-DOS.

Usage

Microsoft Windows

The command-syntax is:

type [Drive:][Path]FileName
[Drive:][Path]FileName 
This parameter specifies the location and name of the file or files to view. Multiple file names need to be separated with spaces.
/? 
This parameter displays help for the command.

See also

References