June 13, 2026 · by Meegrow Labs

How to Read a File in the Terminal with cat

You saved a file last week. Now you just want to see what’s inside it. Do you really have to hunt it down, double-click, and wait for an app to open? Not at all.

This is the first thing many people learn when they figure out how to read a file in the terminal — and once you see it, you’ll use it every single day.

To read a file in the terminal, type cat followed by the file name, like cat notes.txt, and press Enter. The command instantly prints the whole text file onto your screen — no app, no clicking, no waiting.

What does the cat command do?

The cat command shows you the contents of a file. Yes, it’s named after the animal, but it actually stands for “concatenate” — don’t worry about that word for now.

Think of opening a PDF just to read what’s in it. You don’t edit anything; you just want to look. The cat command does exactly that for text files: one peek, the whole file, all at once.

Every text file is just words sitting inside it. One command pulls those words straight onto your screen.

How do I read a file in the terminal?

Let’s break the command into two simple parts:

  • cat is the command itself. It means “show me this”.
  • notes.txt is the file — the one you want to read.

Put them together with a space in between:

cat notes.txt

Press Enter, and the file’s text appears right there in your terminal. That’s the whole trick.

Why is reading a file this way so handy?

Because it’s fast. There’s no clicking through folders, no waiting for a heavy app to load. When you want a quick look at a note, a list, or some saved text, cat gives it to you in a second.

It’s also how builders work all day. Whether you’re checking a settings file or a quick to-do list, reading a file in the terminal keeps your hands on the keyboard and your flow unbroken.

How do I try it right now?

Open a terminal and type the command below (use any text file you already have, or make one first):

cat notes.txt

Watch your file print out all at once. That’s your file, on screen — no app needed.

If you’re new to typing commands, this lesson sits inside the free Zero to AI Hero course, where we take you from “what’s a file?” to building real apps with AI, step by step. Knowing how to read a file in the terminal is a small skill that opens a much bigger door.

Key takeaways

  • To read a file in the terminal, type cat then the file name, like cat notes.txt.
  • cat means “show me this” — it prints the whole text file at once.
  • It’s faster than opening an app: no clicking, no waiting.
  • Use it for notes, lists, settings, or any text file you want to peek at.
  • Next up: peeking at just the top of a file instead of the whole thing.

🚀 Take the full free course: Zero to AI Hero — learn to build with AI from scratch. New lessons daily, in Hindi & English.

Meegrow Labs

We help India go from zero to AI hero — learn to use & build with AI from scratch, in Hindi & English. Start the free course →

Want to actually learn this?

151 free 2-minute lessons — from "what's a file?" to building with AI.

▶ Start the free course