Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: By default, the `ls` command doesn’t display hidden files (those starting with a dot `.`). This can make it difficult to see all files in a directory, including configuration files or hidden directories.

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

ls -A

Why it works: The `-A` (or `–almost-all`) option tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory). This provides a more complete view of your directory’s contents without cluttering the output with the parent/child directory entries themselves.

Pro-Tip: Combine `-A` with `-l` for a detailed, almost-all listing: ls -Al

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments