Unmasking Hidden Files: The `ls -A` Trick
Quick Tip
Unmasking Hidden Files: The `ls -A` Trick
Challenge: By default, the `ls` command in Linux doesn’t show files and directories that start with a dot (‘.’), which are commonly used for configuration and hidden files. You need a quick way to see these without altering your usual `ls` behavior.
The Solution: Use the `-A` (almost all) option with `ls`.
ls -A
Why it works: The `-A` flag tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory). This effectively shows all “hidden” dotfiles while keeping your output relatively clean.
Pro-Tip: For a more visually appealing and feature-rich directory listing, consider installing and using `lsd` (ls deluxe) which provides color-coding and icons.
Linux Tips & Tricks | © ngelinux.com | 7/4/2026
