Site icon New Generation Enterprise Linux

Instantly Unmask Hidden Files with `ls -A`

Quick Tip

Instantly Unmask Hidden Files with `ls -A`

Challenge: You need to see all files in a directory, including those starting with a dot (hidden files), which are typically not displayed by the standard `ls` command.

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

ls -A

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

Pro-Tip: To also include the `.` and `..` entries, use `ls -a`.

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

0 0 votes
Article Rating
Exit mobile version