Site icon New Generation Enterprise Linux

Unmasking Hidden Files with `ls -A`

Quick Tip

Unmasking Hidden Files with `ls -A`

Challenge: You need to list all files in a directory, including those that start with a dot (hidden files), but you don’t want to see the `.` 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 you all hidden files without unnecessary clutter.

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

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

0 0 votes
Article Rating
Exit mobile version