Unmask Hidden Files with `ls -A`

Quick Tip

Unmask Hidden Files with `ls -A`

Challenge: You’re working in a directory and need to see all files, including those that start with a dot (hidden files), which `ls` by default hides.

The Solution: Use the -A flag with ls.

ls -A

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

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments