Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You need to quickly see all files in a directory, including those that start with a dot (hidden files), without resorting to complex commands.

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 . and .., effectively showing all files including dotfiles, which are typically hidden by default.

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

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

0 0 votes
Article Rating
Exit mobile version