Site icon New Generation Enterprise Linux

Unmask Hidden Files Instantly with `ls -A`

Quick Tip

Unmask Hidden Files Instantly with `ls -A`

Challenge: You’re working in a directory and need to see all files, including those starting with a dot (hidden files), without listing the current (`.`) and parent (`..`) directories.

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

ls -A

Why it works: The `-A` flag for `ls` lists all entries except for `.` and `..`. This is incredibly useful for managing configuration files and other dotfiles that are often hidden by default.

Pro-Tip: For a more visually appealing and feature-rich directory listing, consider installing and using `lsd` (ls deluxe), which offers color-coding, icons, and other enhancements.

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

0 0 votes
Article Rating
Exit mobile version