Unmasking Hidden Files Instantly with `ls -A`
Quick Tip
Unmasking Hidden Files Instantly with `ls -A`
Challenge: You need to see all files in a directory, including those starting with a dot (dotfiles), without listing the current directory (`.`) and parent directory (`..`).
The Solution: Use the `-A` flag with the `ls` command.
ls -A
Why it works: The `-A` option for `ls` lists all entries except for `.` and `..`, providing a cleaner view of hidden files compared to `ls -a` which includes them.
Pro-Tip: For a visually rich, tree-like view that also includes hidden files, try `lsd -A` if you have `lsd` installed.
Linux Tips & Tricks | © ngelinux.com | 5/9/2026
