June 12, 2026 · by Meegrow Labs

cd tilde command: go to your home folder in the terminal

Ever felt totally lost on your own computer? You click into one folder, then another, then another, and suddenly you have no idea where you even are. It happens to everyone, and the terminal can make that lost feeling worse. The good news: there is one tiny escape hatch that always works, and it is called the cd tilde command.

The cd tilde command is cd ~. Typing it in your terminal and pressing Enter instantly takes you back to your home folder, no matter how deep you have wandered. It is your reset button, and it works from anywhere.

What is the cd tilde command?

Your computer gives you one special folder that is yours. It holds your files, your downloads, your projects. This is called your home folder.

The cd tilde command is the shortcut that takes you straight there. Type this and press Enter:

cd ~

Let us break it apart. cd means “change directory” — that is just developer-speak for “move”. The tilde (~) is that little wavy line on your keyboard, and it always means your home folder. Put them together and you land right back home.

Why does going home matter so much?

Think of it like the Home button on your phone. You can be deep inside WhatsApp, then Flipkart, then your camera roll — one tap and you are back on the home screen. Home is always the same place.

The terminal works the same way. You will get lost while moving between folders. Everyone does, even people who code for a living. Instead of slowly stepping back one folder at a time, the cd tilde command jumps you home in a single move.

This is a calm, reliable habit. When you feel stuck, you press your reset button and start fresh from a place you know.

How do I try the cd tilde command right now?

You only need an open terminal. If you have not set one up yet, the free Zero to AI Hero course walks you through it step by step. Once your terminal is open, do this:

  • Type cd, then a space, then the tilde ~.
  • Press Enter.
  • Watch your path snap back to the tilde.

That ~ in your prompt is the sign that you are home. You can run this from inside any folder, and it will always bring you to the same place.

A quick tip

On most systems, typing just cd with nothing after it does the same thing as cd ~. Both take you home. The tilde version is worth learning, though, because you will use ~ in longer paths later, like cd ~/projects.

How does this fit with other terminal moves?

So far you have learned to ask where you are and to move into folders. If you have not yet, the lesson on moving into folders pairs perfectly with this one. The cd tilde command is the move you reach for whenever you wander too far and want a clean start.

Next up, you will learn how to make your own folders inside your home — so the place you keep returning to actually has your projects in it.

Key takeaways

  • The cd tilde command is cd ~ — it sends you straight to your home folder.
  • cd means “change directory” (move); the tilde ~ always means home.
  • It works from anywhere, so it is your terminal reset button when you feel lost.
  • The ~ showing in your prompt means you are home.
  • Typing just cd on its own usually does the same thing.

Getting lost is normal. Knowing your way home is what makes the terminal feel friendly. Keep going — one small command at a time, you are building real confidence with the free Zero to AI Hero course.


🚀 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