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 view all files in a directory, including hidden ones (those starting with a dot), without relying on `ls -a` which also shows `.` and `..`.

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

ls -A

Why it works: The `-A` option for `ls` lists all entries except for `.` (current directory) and `..` (parent directory), providing a cleaner view of hidden files and directories.

Pro-Tip: Combine with `-l` for a detailed, hidden-file-inclusive listing: `ls -lA`

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

0 0 votes
Article Rating
Exit mobile version