Site icon New Generation Enterprise Linux

Unlock Hidden Files Instantly with `ls -A`

Quick Tip

Unlock Hidden Files Instantly with `ls -A`

Challenge: You’re working in a directory and need to see all files, including those that start with a dot (hidden files), but `ls` by default omits them.

The Solution: Use the `-A` (almost all) option with `ls`.

ls -A

Why it works: The `-A` flag tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory), effectively revealing all hidden files and directories.

Pro-Tip: For a more visually appealing and informative listing of hidden files, combine `-A` with `-l` (long format) and potentially color output options enabled by default on many systems: ls -Al

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

0 0 votes
Article Rating
Exit mobile version