Site icon New Generation Enterprise Linux

Unlock Hidden `ls` Power: Show All Files, Including Dotfiles

Quick Tip

Unlock Hidden `ls` Power: Show All Files, Including Dotfiles

Challenge: By default, the `ls` command doesn’t show hidden files and directories (those starting with a dot `.`). This can be frustrating when you need to see configuration files or other hidden items.

The Solution: Use the `-a` flag with `ls` to display all entries, including hidden ones.

ls -a

Why it works: The `-a` option tells `ls` to list all files and directories, including those whose names begin with a period (`.`).

Pro-Tip: Combine `-a` with `-l` for a detailed, all-inclusive listing: ls -la

Linux Tips & Tricks | © ngelinux.com | 4/27/2026

0 0 votes
Article Rating
Exit mobile version