Unmasking Hidden Files Instantly with `ls -A`

Quick Tip

Unmasking Hidden Files Instantly with `ls -A`

Challenge: By default, `ls` doesn’t show files and directories that start with a dot (hidden files), which are often configuration files. You might need to quickly see if a hidden file exists in a directory.

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

ls -A

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

Pro-Tip: Combine it with `-l` for a detailed, long listing of all files, including hidden ones: ls -Al

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments