← Lessons/Navigate the Filesystem
← Navigate the Filesystem

Reveal hidden files

Learn

Hidden files: the dot convention

Here's a Unix rule that surprises newcomers: any file whose name starts with a dot is "hidden", so a plain ls won't show it. Nothing is encrypted or locked; it's just a quiet convention for configuration that shouldn't clutter everyday listings. Crucial dotfiles are everywhere: a project's .gitignore, a shell's .bashrc, an app's .env.local.

ls -a lists all entries, hidden ones included. Flags combine, so ls -la gives you the long format with the hidden files too.

The habit to build: when something "isn't there" but should be, it's often just hidden. This directory has exactly such a file, waiting for you to uncover it.

There's a hidden config file here. Run ls -a (or ls -la) to reveal dotfiles — you should see .env.local.

sandbox@opspath: ~
OpsPath sandbox · Debian GNU/Linux 12 · GNU bash 5.2
Each command runs in a fresh, isolated sandbox with this lesson's files in ~.
Nothing carries over between commands, so chain with && or | when you need to.
Type a command and press Enter. ↑/↓ history · Ctrl+L clear · Ctrl+C cancel line
# ── Step 2 · Reveal hidden files ──
# Sign in to run commands — it's free.