Instantly Unmask Hidden Files with `ls -A`

Quick Tip

Instantly Unmask Hidden Files with `ls -A`

Challenge: You need to see all files and directories in a directory, including those that start with a dot (hidden files), without listing the `.` and `..` entries.

The Solution: Use the `-A` option with the `ls` command.

ls -A

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

Pro-Tip: Combine with `-l` for a detailed listing: ls -Al

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments