Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

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

The Solution: Use the `-A` (or `–almost-all`) flag with `ls` to display all files except for ‘.’ (current directory) and ‘..’ (parent directory).

ls -A

Why it works: The `-A` option tells `ls` to list all entries except for the implied `.` and `..` directories, effectively showing hidden files and directories without cluttering the output with the self and parent references.

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments