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 doesn’t show hidden files (those starting with a dot `.`). You might need to quickly see all files, including configuration files, in a directory.

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). This is often more useful than ls -a which includes these directory entries.

Pro-Tip: Combine ls -A with -l for a detailed, almost-all listing: ls -lA.

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

0 0 votes
Article Rating
Exit mobile version