Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You’re working in a directory and need to see all files, including those that start with a dot (hidden files), but you don’t want to see the `.` and `..` entries for the current and parent directories.

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

ls -A

Why it works: The `-A` option in `ls` lists all entries except for `.` and `..`, effectively showing you all hidden files and directories without the clutter of the current and parent directory references.

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

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

0 0 votes
Article Rating
Exit mobile version