Name

type

Synopsis

Display the contents of a text file.

Syntax

type filename

Description

The type command is useful if you need to quickly view the contents of any text file (especially short files). type is also useful for concatenating text files, using the >> operator.

Notes

If the file is exceptionally long, you can press Ctrl-C to interrupt the display before it’s finished.

Get Windows XP in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.