Unmask Hidden Files Instantly with `ls -A`
Quick Tip
Unmask Hidden Files Instantly with `ls -A`
Challenge: By default, the `ls` command hides files and directories that start with a dot (e.g., `.bashrc`, `.config`). This can make it difficult to see all the files present in a directory, especially for configuration files.
The Solution: Use the `-A` (or `–almost-all`) flag with the `ls` command to display all entries except for `.` and `..`.
ls -A
Why it works: The `-A` option tells `ls` to list almost all files, including those that are hidden by convention due to their leading dot. This is a quick way to get a more complete view of a directory’s contents without cluttering the output with the current and parent directory entries.
Pro-Tip: For an even more comprehensive view, including all dot files and directories, use `ls -a`.
Linux Tips & Tricks | © ngelinux.com | 5/18/2026
