# Hidden File (Dotfile)

> A file whose name starts with a dot. Linux hides it from a normal list.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** Dotfile, Dot File, Hidden Folder

## Think of it like

Think of it like a drawer under your bed. It is still there, but you have to look for it.

## Definition

A hidden file is a file whose name starts with a dot, like .bashrc. Linux does not show these files in a normal list. They are usually settings, not your own work. Programs keep their settings in them, in your home folder. Use ls -a to see them. Hiding them keeps your folders tidy.

## Example

Jack wants his shell to greet him. He opens .bashrc in his home folder and adds one line.

## Example code

```console
$ ls -a ~
.  ..  .bashrc  .profile  .ssh
```

Three settings files and folders, all hidden by the dot at the start of their names.

## Why it matters

Your SSH keys and shell settings live in dotfiles. You will edit them often.

## Common mistake

Thinking hidden means secret. Anyone who may read the folder can list them with ls -a.

## Three principles

- **Starts with a dot.** That alone hides it.
- **Mostly settings.** Programs keep their setup here.
- **Not secret.** ls -a shows them all.

## Related terms

- [ls](https://learn.benibix.com/term/infrastructure/ls-command)
- [Home Directory (~)](https://learn.benibix.com/term/infrastructure/home-directory)
- [Shell](https://learn.benibix.com/term/infrastructure/shell)
- [File Permissions](https://learn.benibix.com/term/infrastructure/file-permissions)
- [SSH Config File (~/.ssh/config)](https://learn.benibix.com/term/infrastructure/ssh-config-file)

## 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/hidden-file
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.
