Unmask Hidden Files with `ls -A`
Quick Tip
Unmask Hidden Files with `ls -A`
Challenge: By default, `ls` doesn’t show hidden files (those starting with a dot). This can be inconvenient when you need to quickly see all files in a directory, including configuration files.
The Solution: Use the `-A` flag with `ls` to show all entries except for `.` and `..`.
ls -A
Why it works: The `-A` option (or `–almost-all`) tells `ls` to list all files and directories, including those starting with a dot, but it omits the special directory entries for the current directory (`.`) and the parent directory (`..`). This provides a cleaner view than `ls -a` which includes them.
Pro-Tip: Combine `-A` with `-l` for a detailed, all-inclusive listing: ls -Al
Linux Tips & Tricks | © ngelinux.com | 5/26/2026
