Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

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

The Solution: Use the ls -A command.

ls -A

Why it works: The -A flag for ls lists all entries except for . and .., providing a clean view of hidden files and directories.

Pro-Tip: Combine ls -A with -l for a detailed listing of all files, including hidden ones: ls -Al.

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments