TYPE (DOS command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Description of the TYPE command of RT-11SJ displayed on a VT100.

In computing, type is a command in various RT-11[1], TOPS-20[2], VMS, AmigaDOS[3], CP/M[4], MP/M[5][6], DOS, OS/2, Microsoft Windows, and ReactOS command line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS/4NT and Windows PowerShell. It is used to display the contents of specified files on the computer terminal.[7]

The analogous Unix command is cat. 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[edit]

Microsoft Windows[edit]

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[edit]

References[edit]