Developer(s) | 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 |
Type | Command |
License | PC-MOS: GPLv3 AROS: AROS Public ReactOS: GPLv2 |
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 .
The command is available in the operating systems DEC RT-11, [1] OS/8, [2] RSX-11, [3] TOPS-10, [4] TOPS-20, [5] VMS, Digital Research CP/M, [6] MP/M, [7] [8] MetaComCo TRIPOS, [9] Heath Company HDOS, [10] AmigaDOS, [11] DOS, FlexOS, [12] TSL PC-MOS, [13] SpartaDOS X, [14] IBM/Toshiba 4690 OS, [15] IBM OS/2, Microsoft Windows, [16] ReactOS, [17] AROS, [18] and SymbOS. [19]
The type
command is supported by Tim Paterson's SCP 86-DOS. [20] On MS-DOS, the command is available in versions 1 and later. [21] DR DOS 6.0 also includes an implementation of the TYPE
command. [22]
It is also available in the open source MS-DOS emulator DOSBox and the EFI shell. [23]
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.
The command-syntax and feature set between operating systems and command shell implementations can differ as can be seen in the following examples.
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.
The command-syntax on RT-11 is:
TYPE[/options] filespecs
COPIES:n
– Specify the number of times the file will be typedDELETE
– Delete the file after typing itLOG
– Log the names of the files typedNEWFILES
– Only files dated with the current system date will be typedNOLOG
– Suppress the log of the files typedQUERY
– Require confirmation before typing each fileWAIT
– Wait for user response before proceeding with the typeTYPE/COPIES:3 REPORT
TYPE/NEWFILES *.LST
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. [12]
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. [7]
A>TYPE FILE.PLM
A>TYPE B:X.PRN
0A>TYPE CODE.ASM P23
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. [24] It supports an option to display the file content in hexadecimal form. [13]
The command-syntax on PC-MOS is:
.TYPE filename [/h]
filename
– The name of the file to display/h
– Display content in hexadecimal form[A:\].TYPE FILE.BIN /h
The command supports wildcard characters. In Microsoft Windows and OS/2 it includes the filename in the output when typing multiple files.
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.C:\>type"my report.txt"
C:\>type *.txt
Edlin is a line editor, and the only text editor provided with early versions of IBM PC DOS, MS-DOS and OS/2. Although superseded in MS-DOS 5.0 and later by the full-screen MS-DOS Editor, and by Notepad in Microsoft Windows, it continues to be included in the 32-bit versions of current Microsoft operating systems.
In computer data storage, drive letter assignment is the process of assigning alphabetical identifiers to volumes. Unlike the concept of UNIX mount points, where volumes are named and located arbitrarily in a single hierarchical namespace, drive letter assignment allows multiple highest-level namespaces. Drive letter assignment is thus a process of using letters to name the roots of the "forest" representing the file system; each volume holds an independent "tree".
In computing, dir
(directory) is a command in various computer operating systems used for computer file and directory listing. It is one of the basic commands to help navigate the file system. The command is usually implemented as an internal command in the command-line interpreter (shell). On some systems, a more graphical representation of the directory structure can be displayed using the tree
command.
Peripheral Interchange Program (PIP) was a utility to transfer files on and between devices on Digital Equipment Corporation's computers. It was first implemented on the PDP-6 architecture by Harrison "Dit" Morse early in the 1960s. It was subsequently implemented for DEC's operating systems for PDP-10, PDP-11, and PDP-8 architectures. In the 1970s and 1980s Digital Research implemented PIP on CP/M and MP/M.
An environment variable is a user-definable value that can affect the way running processes will behave on a computer. Environment variables are part of the environment in which a process runs. For example, a running process can query the value of the TEMP environment variable to discover a suitable location to store temporary files, or the HOME or USERPROFILE variable to find the directory structure owned by the user running the process.
In computing, touch
is a command used to update the access date and/or modification date of a computer file or directory. It is included in Unix and Unix-like operating systems, TSC's FLEX, Digital Research/Novell DR DOS, the AROS shell, the Microware OS-9 shell, and ReactOS. The command is also available for FreeDOS and Microsoft Windows.
In computing, CLS
is a command used by the command-line interpreters COMMAND.COM
and cmd.exe
on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them. It does not clear the user's history of commands, however. The command is also available in the DEC RT-11 operating system, in the open-source MS-DOS emulator DOSBox and in the EFI shell. In other environments, such as Linux and Unix, the same functionality is provided by the clear
command.
In computing, more
is a command to view the contents of a text file one screen at a time. It is available on Unix and Unix-like systems, DOS, Digital Research FlexOS, IBM/Toshiba 4690 OS, IBM OS/2, Microsoft Windows and ReactOS. Programs of this sort are called pagers. more
is a very basic pager, originally allowing only forward navigation through a file, though newer implementations do allow for limited backward movement.
The line-oriented debugger DEBUG.EXE
is an external command in operating systems such as DOS, OS/2 and Windows.
In computing, ren
is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, 4NT and Windows PowerShell. It is used to rename computer files and in some implementations also directories. It is analogous to the Unix mv
command. However, unlike mv
, ren
cannot be used to move files, as a new directory for the destination file may not be used. Alternatively, move
may be used if available. On versions of MS-DOS that do not support the move
command, the user would simply copy the file to a new destination, and then delete the original file. A notable exception to this rule is DOSBox, in which ren
may be used to move a file, since move
is not supported.
In computing, del
is a command in command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, NDOS, 4OS2, 4NT and Windows PowerShell. It is used to delete one or more files or directories from a file system.
In computing, the print
command provides single-user print spooling capability in a number of operating systems. It is roughly similar to that provided by the UNIX System V lp and BSD lpr print spooler systems.
In computing, find
is a command in the command-line interpreters (shells) of a number of operating systems. It is used to search for a specific text string in a file or files. The command sends the specified lines to the standard output device.
In computing, help
is a command in various command line shells such as COMMAND.COM
, cmd.exe
, Bash, qshell, 4DOS/4NT, Windows PowerShell, Singularity shell, Python, MATLAB and GNU Octave. It provides online information about available commands and the shell environment.
In computing, copy
is a command in various operating systems. The command copies computer files from one directory to another.
In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows and a number of other operating systems that is used to display and set the current system time. It is included in command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
, 4DOS, 4OS2 and 4NT.
In computing, choice
is a command that allows for batch files to prompt the user to select one item from a set of single-character choices. It is available in a number of operating system command-line shells.
DOS is a family of disk-based operating systems for IBM PC compatible computers. The DOS family primarily consists of IBM PC DOS and a rebranded version, Microsoft's MS-DOS, both of which were introduced in 1981. Later compatible systems from other manufacturers include DR-DOS (1988), ROM-DOS (1989), PTS-DOS (1993), and FreeDOS (1998). MS-DOS dominated the IBM PC compatible market between 1981 and 1995.
A command-line interface (CLI) is a means of interacting with a computer program by inputting lines of text called command-lines. Command-line interfaces emerged in the mid-1960s, on computer terminals, as an interactive and more user-friendly alternative to the non-interactive interface available with punched cards.
In computing, comp
is a command used on DEC OS/8, DOS, DR FlexOS, IBM OS/2, Microsoft Windows and related computer operating systems such as ReactOS. It is used to perform comparisons of multiple computer files to show the differences between them.