Site icon New Generation Enterprise Linux

Unmasking Hidden Files Instantly with `ls -A`

Quick Tip

Unmasking Hidden Files Instantly with `ls -A`

Challenge: You need to see all files and directories in a directory, including those that start with a dot (hidden files), without listing the special ‘.’ (current directory) and ‘..’ (parent directory) entries.

The Solution: Use the ls -A command.

ls -A

Why it works: The -A option for ls displays all entries except for ‘.’ and ‘..’, making it perfect for quickly viewing hidden configuration files and directories without clutter.

Pro-Tip: Combine it with -l for a detailed listing: ls -Al.

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

0 0 votes
Article Rating
Exit mobile version