Unmask Hidden Files with `ls -A`
Quick Tip
Unmask Hidden Files with `ls -A`
Challenge: You need to quickly see all files in a directory, including those that start with a dot (hidden files), without cluttering your output with `.` and `..`.
The Solution: Use the ls -A command.
ls -A
Why it works: The -A flag for ls (list directory contents) shows all entries except for the implied `.` (current directory) and `..` (parent directory). This provides a cleaner view of hidden files compared to ls -a.
Pro-Tip: For a more visually appealing and feature-rich directory listing, consider installing and using lsd (ls deluxe) which offers color-coding, icons, and more.
Linux Tips & Tricks | © ngelinux.com | 6/19/2026
