Quickly Unmask Hidden Files with `ls -A`
Quick Tip
Quickly Unmask Hidden Files with `ls -A`
Challenge: You’re working in a directory and need to see all files, including those that start with a dot (hidden files), without listing the `.` and `..` directory entries.
The Solution: Use the -A flag with the ls command.
ls -A
Why it works: The -A (or --almost-all) option tells ls to list all entries except for the implicit . (current directory) and .. (parent directory) entries, effectively showing you all hidden files and directories.
Pro-Tip: Combine ls -A with -l for a detailed, almost-all listing: ls -Al
Linux Tips & Tricks | © ngelinux.com | 5/20/2026
