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 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.

Try the command

Try viewing a file's contents!

Build the command
type
filenameThe path to the file whose contents you want to display.
Terminal
C:\Users\User>type readme.txt

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 documentation links provide authoritative details for the commands used in this article.

Up Next

Wildcards

Magic characters for file matching.