Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

TITLE: Unmask Hidden Files Instantly with `ls -A`

Challenge: You need to see all files in a directory, including hidden ones (those starting with a dot `.`), but `ls` by default hides them. You want a quick way to reveal them without listing `.` and `..`.

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 . and .., which is exactly what you need to see hidden files and directories without unnecessary clutter.

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments