Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You need to quickly see all files in a directory, including those starting with a dot (hidden files), without resorting to verbose options or changing directory configuration.

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

ls -A

Why it works: The -A option tells ls to list all entries except for . (current directory) and .. (parent directory), effectively showing all hidden files and directories.

Pro-Tip: For a more visually appealing and detailed listing including hidden files, consider installing and using the lsd command (a modern `ls` alternative) with lsd -a.

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments