Unmask Hidden Files Instantly with `ls -A`
Quick Tip
Unmask Hidden Files Instantly with `ls -A`
Challenge: You need to quickly see all files and directories in a given location, including those that are hidden (start with a dot). Standard `ls` command omits these.
The Solution: Use the `-A` flag with the `ls` command.
ls -A
Why it works: The `-A` (or `–almost-all`) option tells `ls` to list all entries except for `.` and `..`. This is useful for quickly checking configuration files or hidden directories without cluttering the output with the current and parent directory entries.
Pro-Tip: Combine `-A` with `-l` for a detailed, almost-all listing: ls -Al.
Linux Tips & Tricks | © ngelinux.com | 6/27/2026
