Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: By default, the `ls` command hides files and directories that start with a dot (‘.’) which are commonly used for configuration. Seeing these is crucial for troubleshooting and managing system settings.

The Solution: Use the `-A` flag with `ls` to reveal all entries except for the special `.` and `..` directories.

ls -A

Why it works: The `-A` option in `ls` (short for “almost all”) is specifically designed to display hidden files and directories without cluttering the output with the current directory (`.`) and parent directory (`..`) entries.

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

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

0 0 votes
Article Rating
Exit mobile version