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 in Linux doesn’t display hidden files (those starting with a dot `.`). This can make it difficult to see all files and directories in a specific location, especially configuration files.

The Solution: Use the `-a` flag with the `ls` command.

ls -a

Why it works: The `-a` option tells `ls` to list all entries in the directory, including those that begin with a dot (`.`) which are normally omitted.

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments