Skip to content
BENIBIX Learn

Hidden File (Dotfile)

Infrastructure⌨️ Linux & the Command LineFiles and Folders

Also known as Dotfile, Dot File, Hidden Folder

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

Think of it like

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

Example

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

Why it matters

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

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 code

console
$ ls -a ~
.  ..  .bashrc  .profile  .ssh
Three settings files and folders, all hidden by the dot at the start of their names.
The .ssh folder in Emma's home starts with a dot. That is why a plain ls skips it.

Common mistake

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

Key takeaways

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

Learn it properly