Site icon New Generation Enterprise Linux

Unlock Hidden Files Instantly with `ls -A`

Quick Tip

Unlock Hidden Files Instantly with `ls -A`

Challenge: You need to quickly see all files in a directory, including those that start with a dot (hidden files), without resorting to complex `find` commands or modifying default `ls` behavior.

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

ls -A

Why it works: The `-A` (or `–almost-all`) option for `ls` displays all entries except for `.` (current directory) and `..` (parent directory). This provides a comprehensive view of all files and directories, including hidden ones, without the clutter of the directory references.

Pro-Tip: For an even more visually appealing and feature-rich directory listing, consider installing and using `lsd` (ls deluxe).

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

0 0 votes
Article Rating
Exit mobile version