Site icon New Generation Enterprise Linux

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

Quick Tip

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

Challenge: You need to list all files in a directory, including those that start with a dot (hidden files), but `ls` by default hides them.

The Solution: Use the `-A` flag with the `ls` command.

ls -A

Why it works: The `-A` option for `ls` lists all entries except for `.` (current directory) and `..` (parent directory), effectively showing all hidden files and directories without cluttering the output with the default current/parent directory entries.

Pro-Tip: For a more visually appealing and feature-rich directory listing, consider installing and using `lsd` (ls deluxe) which provides color-coding, icons, and more out-of-the-box.

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

0 0 votes
Article Rating
Exit mobile version