Unmasking Hidden Files: The `ls -A` Trick

Quick Tip

Unmasking Hidden Files: The `ls -A` Trick

Challenge: By default, `ls` hides files and directories that start with a dot (e.g., `.bashrc`, `.config`). This can make it difficult to see all files in a directory when you need to.

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: Combine `-A` with `-l` for a detailed, all-inclusive listing: `ls -lA`.

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments