Unmasking Hidden Files Instantly with `ls -A`

Quick Tip

Unmasking Hidden Files Instantly with `ls -A`

Challenge: You need to see all files and directories in a location, including hidden ones (those starting with a dot `.`), without cluttering your view with the `.` and `..` entries.

The Solution: Use the ls -A command.

ls -A

Why it works: The -A flag for ls lists all entries, including hidden files, but excludes the special current directory (.) and parent directory (..) entries.

Pro-Tip: Combine it with -l for a detailed, hidden-file-inclusive listing: ls -lA

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