TYPE (DOS command)

title: "TYPE (DOS command)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["cp/m-commands", "internal-dos-commands", "msx-dos-commands", "os/2-commands", "reactos-commands", "windows-commands", "microcomputer-software", "windows-administration"] topic_path: "technology/operating-systems" source: "https://en.wikipedia.org/wiki/TYPE_(DOS_command)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | type |
| screenshot | Bwdos.png |
| caption | The BW-DOS TYPE command |
| developer | Various open-source and commercial developers |
| operating system | RT-11, OS/8, RSX-11, TOPS-10, TOPS-20, VMS, CP/M, MP/M, CDOS, TRIPOS, HDOS, AmigaDOS, DOS, MSX-DOS, FlexOS, PC-MOS, SpartaDOS X, 4690 OS, OS/2, Windows, AROS, ReactOS, SymbOS |
| platform | Cross-platform |
| genre | Command |
| license | PC-MOS: GPLv3 |
| AROS: AROS Public | |
| ReactOS: GPLv2 | |
| :: |
| name = type
| logo =
| screenshot = Bwdos.png
| screenshot size =
| caption = The BW-DOS TYPE command
| developer = Various open-source and commercial developers
| released =
| latest release version =
| latest release date =
| operating system = RT-11, OS/8, RSX-11, TOPS-10, TOPS-20, VMS, CP/M, MP/M, CDOS, TRIPOS, HDOS, AmigaDOS, DOS, MSX-DOS, FlexOS, PC-MOS, SpartaDOS X, 4690 OS, OS/2, Windows, AROS, ReactOS, SymbOS
| platform = Cross-platform
| genre = Command
| license = PC-MOS: GPLv3
AROS: AROS Public
ReactOS: GPLv2
| website =
In computing, **** is a command in various command-line interpreters (shells) such as [COMMAND.COM](command-com), [cmd.exe](cmd-exe), 4DOS/4NT and Windows PowerShell used to display the contents of specified files on the computer terminal. The analogous Unix command is .
Implementations
::figure[src="https://upload.wikimedia.org/wikipedia/commons/c/c2/RT-11_help.jpg" caption="VT100]]."] ::
The command is available in the operating systems DEC RT-11, OS/8,"Concise Command Language" (CCL).{{cite web |url=http://bitsavers.trailing-edge.com/pdf/dec/pdp8/os8/OS8_Handbook_Apr1974.pdf |title=OS/8 Handbook |date=April 1974 |access-date=28 November 2017}} RSX-11, TOPS-10, TOPS-20,{{cite web |url=http://www.textfiles.com/bitsavers/pdf/dec/pdp10/TOPS20/V6.1/AA-FP65A-TM_tops20CmdsRef.pdf |title=TOPS-20 Command manual |access-date=2018-07-18 |archive-date=2020-08-09 |archive-url=https://web.archive.org/web/20200809103116/http://www.textfiles.com/bitsavers/pdf/dec/pdp10/TOPS20/V6.1/AA-FP65A-TM_tops20CmdsRef.pdf |url-status=dead SpartaDOS X 4.48 User Guide IBM/Toshiba 4690 OS, IBM OS/2, Microsoft Windows, ReactOS, AROS, and SymbOS.
The type command is supported by Tim Paterson's SCP 86-DOS. On MS-DOS, the command is available in versions 1 and later. DR DOS 6.0 also includes an implementation of the command.
It is also available in the open source MS-DOS emulator DOSBox and the EFI shell.{{cite web | url = http://software.intel.com/en-us/articles/efi-shells-and-scripting/ | title = EFI Shells and Scripting | publisher = Intel | access-date = 2013-09-25
In Windows PowerShell, ** is a predefined command alias for the Cmdlet which basically serves the same purpose. originated as an internal command in 86-DOS.
The command-syntax and feature set between operating systems and command shell implementations can differ as can be seen in the following examples.
DEC RT-11
In Digital Equipment Corporation's RT-11, the command accepts up to six input file specifications. Multiple file specifications are separated with commas.
The default filetype is .LST. Wildcards are accepted in place of filenames or filetypes.
Syntax
The command-syntax on RT-11 is: TYPE[/options] filespecs
**COPIES:n**– Specify the number of times the file will be typed**DELETE**– Delete the file after typing it**LOG**– Log the names of the files typed**NEWFILES**– Only files dated with the current system date will be typed**NOLOG**– Suppress the log of the files typed**QUERY**– Require confirmation before typing each file**WAIT**– Wait for user response before proceeding with the type
Examples
TYPE/COPIES:3 REPORT
TYPE/NEWFILES *.LST
DR CP/M, MP/M, FlexOS
In Digital Research CP/M, the command expands tabs and line-feed characters (CTRL-I), assuming tab positions are set at every eighth column.
The command does not support wildcard characters on FlexOS.
Syntax
The command-syntax on CP/M is: TYPE ufn
Note: ufn = unambiguous file reference
In MP/M, the command has a pause mode. It is specified by entering a 'P' followed by two decimal digits after the filename. The specified number of lines will be displayed and then the command will pause until a carriage return is entered.
Examples
::code[lang=doscon] A>TYPE FILE.PLM ::
::code[lang=doscon] A>TYPE B:X.PRN ::
::code[lang=doscon] 0A>TYPE CODE.ASM P23 ::
TSL PC-MOS
The Software Link's PC-MOS includes an implementation of TYPE. Like the rest of the operating system, it is licensed under the GPL v3.
It supports an option to display the file content in hexadecimal form.
Syntax
The command-syntax on PC-MOS is:
.TYPE filename [/h]
**filename**– The name of the file to display**/h**– Display content in hexadecimal form
Examples
::code[lang=doscon] [A:].TYPE FILE.BIN /h ::
Microsoft Windows, OS/2, ReactOS
::figure[src="https://upload.wikimedia.org/wikipedia/commons/8/8b/ReactOS-0.4.13_type_command_667x434.png" caption="The [[ReactOS]] type command"]
::
The command supports wildcard characters. In Microsoft Windows and OS/2 it includes the filename in the output when typing multiple files.
Syntax
The command-syntax on Microsoft Windows and ReactOS 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.
Examples
::code[lang=doscon] C:>type "my report.txt" ::
::code[lang=doscon] C:>type *.txt ::
References
References
- "RT-11 HELP FILE".
- John F. Pieper. (1987). "RSX A Guide for Users". Digital Equipment Corporation.
- (August 1980). "TOPS-10 Operating System Commands Manual". Digital Equipment Corporation.
- "Manual".
- Digital Research. (July 1981). "MP/M - Multi-Programming Monitor Control Program - User's Guide". [[Digital Research]].
- Digital Research. (1981-09-25). "MP/M-86 Operating System - User's Guide". [[Digital Research]].
- "Manual".
- Heath Company. "Software Reference Manual HDOS SYSTEM Chapter 2 General Operations".
- (September 19, 1988). "AmigaDOS quick reference". Grand Rapids, Mi : Abacus.
- (November 1986). "FlexOS User's Guide Version 1.3". [[Digital Research]].
- (2 January 2022). "roelandjansen/pcmos386v501".
- "Users guide".
- (11 September 2009). "Microsoft TechNet Type article".
- (3 January 2022). "reactos/reactos".
- "AROS Research Operating System".
- "Data sheet".
- (1980). "86-DOS - Disk Operating System for the 8086 - User's Manual". [[Seattle Computer Products, Inc.]].
- (2003). "Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition". [[Microsoft Press]].
- [https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips]
- Jansen, Roeland. (8 February 2018). "pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources".
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::