Unmasking Hidden Files with `ls -A`

Quick Tip

Unmasking Hidden Files with `ls -A`

Challenge: By default, the `ls` command hides files and directories that start with a dot (e.g., `.bashrc`, `.config`). This makes it difficult to see and manage configuration files or hidden directories.

The Solution: Use the `-A` (almost all) flag with the `ls` command.

ls -A

Why it works: The `-A` flag tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory), effectively showing all hidden files and directories.

Pro-Tip: For a more visually organized output including hidden files, combine it with the `-l` (long listing format) and `-h` (human-readable file sizes) flags: ls -Alh.

Linux Tips & Tricks | © ngelinux.com | 5/8/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments