Quick Tip
Tame Your Terminal: Unmask Hidden Files with `ls -A`
Challenge: By default, `ls` in Linux hides files and directories that start with a dot (e.g., `.bashrc`, `.config`). These “hidden” files often contain important configuration or system-specific data, and sometimes you need to see them to troubleshoot or manage your system.
The Solution: Use the `-A` flag with the `ls` command to reveal all files, including hidden ones, except for the current directory (`.`) and parent directory (`..`).
ls -A
Why it works: The `-A` option is a convenient shortcut provided by `ls` that specifically targets dotfiles without cluttering the output with the self-referential directory entries. This makes it ideal for examining configuration directories and files.
Pro-Tip: For a more visually appealing and informative directory listing that also shows hidden files, consider installing and using `lsd` (a modern `ls` replacement) with `lsd -A` or simply `lsd`.
Linux Tips & Tricks | © ngelinux.com | 5/28/2026
