Unmasking Hidden Files with `ls -A`

Quick Tip

Unmasking Hidden Files with `ls -A`

Challenge: By default, the ls command doesn’t show hidden files (those starting with a dot, like .bashrc). Sometimes you need to quickly see all files, including these hidden ones, to troubleshoot or check configurations.

The Solution: Use the -A (or --almost-all) flag with ls.

ls -A

Why it works: The -A flag tells ls to list all entries except for . (current directory) and .. (parent directory), effectively showing all hidden files without cluttering the output with directory navigation entries.

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

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments