Instantly Unmask Hidden Files with `ls -A`

Quick Tip

Instantly Unmask Hidden Files with `ls -A`

Challenge: By default, the `ls` command hides files and directories that begin with a dot (often referred to as “dotfiles”), which are commonly used for configuration. You might need to see these to troubleshoot or manage your environment.

The Solution: Use the `-A` flag with `ls` to display all entries except for `.` and `..`.

ls -A

Why it works: The `-A` option, short for “almost all,” instructs `ls` to list all files and directories, including those that are hidden (start with a dot), but it conveniently omits the current directory (`.`) and parent directory (`..`) entries, which are usually not of primary interest when you just want to see your configuration files.

Pro-Tip: For a long listing format that includes permissions, ownership, and size, combine it with the `-l` flag: `ls -lA`

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments