Unmask Hidden Files Instantly with `ls -A`
Quick Tip
Unmask Hidden Files Instantly with `ls -A`
TITLE: Unmask Hidden Files Instantly with `ls -A`
Challenge: You need to see all files in a directory, including those that start with a dot (hidden files), without listing the current directory (`.`) and parent directory (`..`).
The Solution: Use the `-A` option with `ls`.
ls -A
Why it works: The `-A` option (short for –almost-all) tells `ls` to list all entries except for `.` and `..`. This is a common requirement for viewing configuration files or hidden directories.
Pro-Tip: For a more visually appealing directory listing that includes hidden files and better formatting, consider installing and using `lsd` (a modern `ls` replacement) and then running `lsd -A`.
Linux Tips & Tricks | © ngelinux.com | 5/5/2026
