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 doesn’t show files and directories that start with a dot (`.`), which are commonly used for configuration and hidden files. You need a quick way to reveal these without resorting to complex options.

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

ls -A

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

Pro-Tip: For a more visually appealing and informative listing of all files, including hidden ones, consider installing and using `lsd` (a modern `ls` replacement): `lsd -a`

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

0 0 votes
Article Rating
Exit mobile version