Instantly Unmask Hidden Files with `ls -A`

Quick Tip

Instantly 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), but `ls` by default hides them.

The Solution: Use the `-A` option with `ls` to show all entries except for `.` and `..`.

ls -A

Why it works: The `-A` (or `–almost-all`) flag tells `ls` to list all files and directories, including hidden ones, without cluttering the output with the current directory (`.`) and parent directory (`..`).

Pro-Tip: For a more visually appealing and informative listing of hidden files, consider installing and using `lsd` (`ls` daemon) which provides color-coding and icons: lsd -A

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