Unmask Hidden Files Instantly with `ls -A`
Quick Tip
Unmask Hidden Files Instantly with `ls -A`
Challenge: By default, `ls` hides files and directories starting with a dot (`.`), which are often used for configuration. You need a quick way to see all files, including these hidden ones, without changing your shell’s default behavior.
The Solution: Use the `-A` flag with the `ls` command.
ls -A
Why it works: The `-A` option for `ls` lists all entries except for `.` (current directory) and `..` (parent directory). This provides a comprehensive view of all files and directories in the current location, including hidden ones, making it perfect for quick checks.
Pro-Tip: For an even more visually organized directory listing, try `ls -lAhX` which provides a long listing, shows hidden files, sorts by modification time (newest first), and sorts by extension.
Linux Tips & Tricks | © ngelinux.com | 7/4/2026
