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 quickly see all files and directories in a directory, including those that start with a dot (hidden files), without cluttering your output with `.` and `..`.

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), providing a clean view of all hidden and visible files.

Pro-Tip: For a more visually enhanced listing, combine it with lsd -A if you have the lsd tool installed.

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

0 0 votes
Article Rating
Exit mobile version