Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: By default, the `ls` command hides files and directories that start with a dot (‘.’) – often used for configuration files. How can you quickly see these without listing *everything*?

The Solution: Use the `-A` flag with `ls`.

ls -A

Why it works: The `-A` option (or `–almost-all`) tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory), effectively showing all dotfiles and hidden directories.

Pro-Tip: Combine it with `-l` for a detailed view: ls -Al

Linux Tips & Tricks | © ngelinux.com | 5/11/2026

0 0 votes
Article Rating
Exit mobile version