Unmask Hidden Files with `ls -A`

Quick Tip

Unmask Hidden Files with `ls -A`

Challenge: You’re trying to list all files in a directory, including those that start with a dot (hidden files), but `ls` by itself doesn’t show them.

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

ls -A

Why it works: The `-A` option for `ls` lists all entries except for `.` (current directory) and `..` (parent directory). This is often more useful than `ls -a` which includes both `.` and `..`.

Pro-Tip: Combine it with `-l` for a detailed view: ls -lA

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments