Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You need to quickly see all files in a directory, including hidden ones (those starting with a dot), without listing the current directory (`.`) and parent directory (`..`).

The Solution: Use the `ls -A` command.

ls -A

Why it works: The `-A` (or `–almost-all`) option for `ls` displays all entries except for `.` and `..`, giving you a comprehensive view of the directory’s contents without unnecessary clutter.

Pro-Tip: Combine `ls -A` with `-l` for a detailed, almost-all listing: ls -Al

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

0 0 votes
Article Rating
Exit mobile version