Site icon New Generation Enterprise Linux

Unlock Hidden Files Instantly with `ls -A`

Quick Tip

Unlock Hidden Files Instantly with `ls -A`

Challenge: By default, the `ls` command in Linux hides files and directories that start with a dot (‘.’) – the so-called “hidden” files, commonly used for configuration. You often need to see these to manage dotfiles or troubleshoot configuration issues.

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

ls -A

Why it works: The `-A` (or `–almost-all`) option tells `ls` to list all entries except for `.` (current directory) and `..` (parent directory). This effectively reveals all hidden files and directories without cluttering the output with the current and parent directory entries.

Pro-Tip: Combine `-A` with `-l` for a detailed, almost-all listing: ls -Al

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

0 0 votes
Article Rating
Exit mobile version