Unmasking Hidden Files with `ls -A`
Quick Tip
Unmasking Hidden Files with `ls -A`
Challenge: You need to see all files and directories in a directory, including those that start with a dot (hidden files), but you don’t want to see the special `.` (current directory) and `..` (parent directory) entries.
The Solution: Use the ls -A command.
ls -A
Why it works: The -A option (almost all) for ls displays all entries except for the implied . and .. directories. This is often more practical than ls -a which shows everything.
Pro-Tip: Combine ls -Al for a detailed, “almost all” listing.
Linux Tips & Tricks | © ngelinux.com | 5/1/2026
