Unmasking Hidden Files with `ls -A`

Quick Tip

Unmasking Hidden Files with `ls -A`

Challenge: By default, the `ls` command doesn’t show hidden files (those starting with a dot `.` ). This can make it difficult to see all configuration files or hidden directories.

The Solution: Use the `-A` flag with `ls` to display all files, including hidden ones, except for the special `.` (current directory) and `..` (parent directory) entries.

ls -A

Why it works: The `-A` option tells `ls` to “almost all” files, effectively including dotfiles while omitting the verbose current and parent directory references, making it more concise than `ls -a` for most everyday tasks.

Pro-Tip: For a more visual representation of your directory structure, including hidden files and directories, try `tree -a`.

Linux Tips & Tricks | © ngelinux.com | 4/30/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments