Tame Your Terminal: Unmask Hidden Files with `ls -A`

Quick Tip

Tame Your Terminal: Unmask Hidden Files with `ls -A`

Challenge: By default, `ls` hides files and directories starting with a dot (`.`), which are commonly used for configuration. You often need to see these to verify settings or troubleshoot hidden directories.

The Solution: Use the `-A` option with `ls` to list all entries except for `.` (current directory) and `..` (parent directory).

ls -A

Why it works: The `-A` flag tells `ls` to display almost all files, including those that start with a dot, providing a more comprehensive view of directory contents.

Pro-Tip: Combine `-A` with `-l` for a detailed, hidden-file-inclusive listing: ls -lA

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted