Unmask Hidden Files with `ls -A`
Quick Tip
Unmask Hidden Files with `ls -A`
Challenge: You’re working in a directory and need to see all files, including those that are hidden (dotfiles like `.bashrc` or `.ssh`), but you don’t want to clutter your output with `.` and `..`.
The Solution: Use the ls -A command.
ls -A
Why it works: The -A option for ls lists all entries except for . (current directory) and .. (parent directory), effectively showing you all hidden files and directories without the usual navigational noise.
Pro-Tip: Combine it with -l for a detailed listing: ls -lA.
Linux Tips & Tricks | © ngelinux.com | 6/18/2026
