Quick Tip
Unmasking Hidden Files with `ls -A`
Challenge: You need to quickly list all files in a directory, including those that start with a dot (hidden files), without listing the special `.` (current directory) and `..` (parent directory) entries.
The Solution: Use the `-A` option with the `ls` command.
ls -A
Why it works: The `-A` (or `–almost-all`) option tells `ls` to list all entries except for `.` and `..`. This is incredibly useful for reviewing configuration files or hidden application data.
Pro-Tip: For a more visually appealing and informative listing, combine it with `-l` for a long format and `-h` for human-readable file sizes: ls -Alh.
Linux Tips & Tricks | © ngelinux.com | 5/8/2026
