Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You need to see all files in a directory, including hidden files (those starting with a dot `.`), but `ls` by default hides them.

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), effectively showing all hidden files without the clutter of the directory references.

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments