Site icon New Generation Enterprise Linux

Stealthy File Discovery: Unmask Hidden Files with `ls -A`

Quick Tip

Stealthy File Discovery: Unmask Hidden Files with `ls -A`

Challenge: You need to quickly see all files and directories in the current location, including those that are hidden (start with a dot ‘.’). Standard `ls` command omits these.

The Solution: Use the -A flag with the ls command.

ls -A

Why it works: The -A (or --almost-all) option for ls lists all entries except for . (current directory) and .. (parent directory). This provides a comprehensive view without clutter.

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

Linux Tips & Tricks | © ngelinux.com | 6/8/2026

0 0 votes
Article Rating
Exit mobile version