Unmasking Hidden Files Instantly with `ls -A`
Quick Tip
Unmasking Hidden Files Instantly with `ls -A`
Challenge: By default, `ls` hides files and directories starting with a dot (‘.’), which are commonly used for configuration files. Discovering and viewing these hidden items can be cumbersome.
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 special directory entries.
Pro-Tip: Combine `ls -A` with `-l` for a detailed, long listing of all files, including hidden ones: `ls -Al`
Linux Tips & Tricks | © ngelinux.com | 5/3/2026
