# Home Directory (~)

> Your own folder on a Linux machine. The sign ~ is short for it.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** Home Folder, User Home Directory, Tilde (~)

## Think of it like

Think of it like your own bedroom in a big house. Your things go here, and others stay out.

## Definition

A home directory is the folder that belongs to one user. On Linux it is usually /home and then the user's name. Your files and your personal settings live there. The short sign ~ means your own home folder. When you log in, you start in your home folder. The root user has its own home at /root.

## Example

Emma logs in to a server. She starts in /home/emma, where her notes and her .ssh folder are kept.

## Example code

```console
$ echo $HOME
/home/emma
$ cd ~
```

Ask where home is, then go there. The ~ sign takes you home from anywhere.

## Why it matters

Your keys, settings and files live here. Most of your work on a server starts in this folder.

## Common mistake

Saving files for a website in your home folder. The web server usually cannot read it there.

## Three principles

- **One per user.** Usually /home and the user's name.
- **~ is short for it.** cd ~ takes you home.
- **You start here.** Every login lands in it.

## Related terms

- [Root Directory (/)](https://learn.benibix.com/term/infrastructure/root-directory)
- [Hidden File (Dotfile)](https://learn.benibix.com/term/infrastructure/hidden-file)
- [cd](https://learn.benibix.com/term/infrastructure/cd-command)
- [Environment Variable](https://learn.benibix.com/term/infrastructure/environment-variable)
- [Directory](https://learn.benibix.com/term/development/directory)

## Taught in

- [The Linux File Tree](https://learn.benibix.com/learn/infrastructure-linux/linux-file-tree): Linux CLI, 4/10

![A folder tree with a single slash at the top, the root. Below it hang etc, home, root and var. Under home sits emma, marked with a tilde as her home folder and with a you-are-here marker. Inside emma are notes.txt, photos and two faded hidden items, .bashrc and .ssh. Under var sits log. An arrow shows a cd move from emma down to var/log.](https://learn.benibix.com/diagrams/inf3-file-tree.svg)

---

Source: https://learn.benibix.com/term/infrastructure/home-directory
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
