Back to Blog
Arnošt Havelka

The TYPE Command

Display file contents directly in your terminal.

Start Interactive Lesson
The TYPE Command

The TYPE Command

The type command is a quick and easy way to view the contents of a text file without opening an editor. Need to check a config file, read a log, or peek inside a script? Just type it! It's one of the most practical commands for day-to-day work on the command line.

Usage:type
[filename]
filename
The path to the file whose contents you want to display.

Real-World Examples

Display the contents of a text file:

Command Prompt
Directory of C:\Projects readme.txt 45 bytes config.ini 128 bytes
C:\Users\User>dir

View a configuration file:

Command Prompt
C:\Users\User>type config.ini

Knowledge Check

1 / 2

What does the type command do?

References

These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.

Up Next

Navigate with CD

Hop between folders like a pro.