Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

TITLE: Unmask Hidden Files Instantly with `ls -A`

Challenge: By default, the ls command in Linux doesn’t show hidden files (those starting with a dot “.”). This can be inconvenient when you need to quickly see configuration files or other hidden items in a directory.

The Solution: Use the -A (almost all) option with ls to display all entries except for “.” (current directory) and “..” (parent directory).

ls -A

Why it works: The -A flag tells ls to list all files and directories, including those that are normally hidden due to their leading dot, while still omitting the standard `.` and `..` entries for clarity.

Pro-Tip: For a more visually appealing and tree-like directory listing that includes hidden files, consider installing and using the lsd command.

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted