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 see all files in a directory, including hidden ones (those starting with a dot), but don’t want to clutter your view with ‘.’ and ‘..’ entries.

The Solution: Use the ls -A command.

ls -A

Why it works: The -A flag for ls lists all entries except for ‘.’ (current directory) and ‘..’ (parent directory), effectively showing hidden files without the extra clutter.

Pro-Tip: Combine ls -A with other ls flags like -l for a detailed, hidden-file-aware listing: ls -Al.

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

0 0 votes
Article Rating
Exit mobile version