HOME

TheInfoList



OR:

In
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes, and development of both hardware and software. Computing has scientific, ...
, is a command in various
command-line interpreter A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive command (computing), commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invokin ...
s ( shells) such as COMMAND.COM, cmd.exe, 4DOS/ 4NT and
Windows PowerShell PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-s ...
used to display the contents of specified
files File or filing may refer to: Mechanical tools and processes * File (tool), a tool used to ''remove'' fine amounts of material from a workpiece **Filing (metalworking), a material removal process in manufacturing ** Nail file, a tool used to gent ...
on the computer terminal. The analogous
Unix Unix (; trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
command is .


Implementations

The command is available in the
operating system An operating system (OS) is system software that manages computer hardware, software resources, and provides common daemon (computing), services for computer programs. Time-sharing operating systems scheduler (computing), schedule tasks for ef ...
s DEC RT-11, OS/8,"Concise Command Language" (CCL). RSX-11, TOPS-10,
TOPS-20 The TOPS-20 operating system by Digital Equipment Corporation (DEC) is a proprietary OS used on some of DEC's 36-bit mainframe computers. The Hardware Reference Manual was described as for "DECsystem-10/DECSYSTEM-20 Processor" (meaning the DEC PD ...
,
VMS #REDIRECT VMS {{redirect category shell, {{R from other capitalisation{{R from ambiguous page ...
, Digital Research CP/M, MP/M, MetaComCo
TRIPOS At the University of Cambridge, a Tripos (, plural 'Triposes') is any of the examinations that qualify an undergraduate for a bachelor's degree or the courses taken by a student to prepare for these. For example, an undergraduate studying mathe ...
, Heath Company HDOS, AmigaDOS, DOS, FlexOS, TSL PC-MOS,
SpartaDOS X SpartaDOS X (or SpartaDOS 4.0) is a disk operating system for the Atari 8-bit family of computers that closely resembles MS-DOS. It was developed and sold by ICD, Inc. in 1987-1993, and many years later picked up by the third-party community S ...
, IBM/ Toshiba 4690 OS, IBM OS/2,
Microsoft Microsoft Corporation is an American multinational corporation, multinational technology company, technology corporation producing Software, computer software, consumer electronics, personal computers, and related services headquartered at th ...
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ...
, ReactOS, AROS, and SymbOS. The type command is supported by Tim Paterson's
SCP SCP may refer to: Organizations Political parties * Soviet Communist Party, the leading political party in the former Soviet Union * Syrian Communist Party * Sudanese Communist Party * Scottish Christian Party Companies * Seattle Computer Produ ...
86-DOS. On
MS-DOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few oper ...
, the command is available in versions 1 and later. DR DOS 6.0 also includes an implementation of the command.DR DOS 6.0 User Guide Optimisation and Configuration Tips
/ref> It is also available in the
open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized sof ...
MS-DOS emulator DOSBox and the EFI shell. In
Windows PowerShell PowerShell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Initially a Windows component only, known as Windows PowerShell, it was made open-s ...
, ' 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 Digital Equipment Corporation (DEC ), using the trademark Digital, was a major American company in the computer industry from the 1960s to the 1990s. The company was co-founded by Ken Olsen and Harlan Anderson in 1957. Olsen was president unti ...
'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 Option or Options may refer to: Computing *Option key, a key on Apple computer keyboards *Option type, a polymorphic data type in programming languages * Command-line option, an optional parameter to a command *OPTIONS, an HTTP request method ...
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 A carriage return, sometimes known as a cartridge return and often shortened to CR, or return, is a control character or mechanism used to reset a device's position to the beginning of a line of text. It is closely associated with the line feed ...
is entered.


Examples

A>TYPE FILE.PLM A>TYPE B:X.PRN 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 The GNU General Public License (GNU GPL or simply GPL) is a series of widely used free software licenses that guarantee end users the four freedoms to run, study, share, and modify the software. The license was the first copyleft for general ...
. It supports an option to display the file content in
hexadecimal In mathematics and computing, the hexadecimal (also base-16 or simply hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Unlike the decimal system representing numbers using 10 symbols, h ...
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

:\TYPE FILE.BIN /h


Microsoft Windows, OS/2, ReactOS

The command supports wildcard characters. In
Microsoft Microsoft Corporation is an American multinational corporation, multinational technology company, technology corporation producing Software, computer software, consumer electronics, personal computers, and related services headquartered at th ...
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ...
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 rive:Path]FileName * rive: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

C:\>type "my report.txt" C:\>type *.txt


See also

*
List of DOS commands This article presents a list of commands used by DOS operating systems, especially as used on x86-based IBM PC compatibles (PCs). Other DOS operating systems are not part of the scope of this list. In DOS, many standard system commands were p ...
*
List of Unix commands This is a list of Unix commands as specified by IEEE Std 1003.1-2008, which is part of the Single UNIX Specification (SUS). These commands can be found on Unix operating systems and most Unix-like operating systems. List See also * List of G ...


References


Further reading

* * *


External links


type , Microsoft Docs
{{Windows commands CP/M commands Internal DOS commands MSX-DOS commands OS/2 commands ReactOS commands Windows commands Microcomputer software Windows administration