Terminal Dojo
Help العربية Sign inGet started

Command library / type

type

CMDDraft — pending expert review3 practice missions

Print a file's contents to the screen

The CMD equivalent of reading a file straight to the screen — the same job bash's cat does. Give it more than one file and it prints them one after another, each preceded by its own name.

Practice type

Usage

type file...

Options and flags

Examples

Common mistakes

type type C:\Windows\System32\drivers\etc\hosts

type always needs at least one file — without one there's nothing to print.

type C:\Program Files\Acme\config.ini type "C:\Program Files\Acme\config.ini"

CMD splits unquoted arguments at spaces, so this asks for two files: C:\Program and Files\Acme\config.ini.

Related commands

findstrtasklist