Site icon New Generation Enterprise Linux

Instantly Unmask Hidden Files with `ls -A`

Quick Tip

Instantly Unmask Hidden Files with `ls -A`

Challenge: By default, the `ls` command in Linux hides files and directories that start with a dot (e.g., `.bashrc`, `.config`). This can be frustrating when you need to see all files in a directory for configuration or troubleshooting.

The Solution: Use the `-A` flag with the `ls` command to show all entries except for `.` and `..`.

ls -A

Why it works: The `-A` flag (short for “almost all”) tells `ls` to list all files and directories, including those starting with a dot, without including the special directory entries `.` (current directory) and `..` (parent directory).

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

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

0 0 votes
Article Rating
Exit mobile version