Unmasking Hidden Files with `ls -A`
Quick Tip
Unmasking Hidden Files with `ls -A`
Challenge: By default, the `ls` command in Linux doesn’t show hidden files (those starting with a dot `.`). This can be inconvenient when you need to see all configuration files or other hidden items in a directory.
The Solution: Use the `-A` flag with the `ls` command.
ls -A
Why it works: The `-A` option tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory), effectively showing all hidden files and directories without cluttering the output with the directory navigation entries.
Pro-Tip: For an even more detailed listing that includes hidden files and permissions, use `ls -laA`.
Linux Tips & Tricks | © ngelinux.com | 6/17/2026
