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, ls does not show hidden files (those starting with a dot ‘.’). This can make it difficult to see all files in a directory, especially configuration files.

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 the implied . (current directory) and .. (parent directory) entries. This is perfect for seeing all hidden files without the clutter of the directory references.

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

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

0 0 votes
Article Rating
Exit mobile version