Tame Your Terminal: Unmask Hidden Files with `ls -A`
Quick Tip
Tame Your Terminal: Unmask Hidden Files with `ls -A`
Challenge: You’re working in a directory and want to see all files, including those starting with a dot (hidden files), which are crucial for configuration and system files.
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 . (current directory) and .. (parent directory), effectively showing all hidden files and directories.
Pro-Tip: Combine it with the -l flag for a detailed, long listing: ls -Al.
Linux Tips & Tricks | © ngelinux.com | 5/24/2026
