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 view all files in a directory, including those that start with a dot (hidden files), without resorting to `ls -a` which also shows `.` and `..`.

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

ls -A

Why it works: The `-A` flag for `ls` (List) displays all entries except for `.` (current directory) and `..` (parent directory), effectively showing all hidden files and directories without the extra noise.

Pro-Tip: Combine it with `-l` for a detailed, long listing: ls -Al

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

0 0 votes
Article Rating
Exit mobile version