Unmasking Hidden Files Instantly with `ls -A`
Quick Tip
Unmasking Hidden Files Instantly with `ls -A`
Challenge: By default, ls doesn’t show hidden files and directories (those starting with a dot). This can make it difficult to see all files within a directory when you need to.
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 . and .., effectively showing you all hidden files and directories.
Pro-Tip: For a more visually appealing and detailed view of all files, including hidden ones, consider installing and using the lsd command-line tool.
Linux Tips & Tricks | © ngelinux.com | 5/4/2026
