type (command)

From Wikipedia, the free encyclopedia

In computing, type is a command in various DOS, OS/2 and Microsoft Windows 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. It is analogous to the Unix cat command.

In Windows PowerShell, type is a predefined command alias for the Get-Content Cmdlet which basically serves the same purpose.

[edit] Example

type filename

The command is frequently used in conjunction with the more command, e.g.

type long-text-file | more

[edit] See also

[edit] References