Site icon New Generation Enterprise Linux

Unmasking Hidden Files Instantly with `ls -A`

Quick Tip

Unmasking Hidden Files Instantly with `ls -A`

Challenge: You need to see all files and directories in your current location, including those that start with a dot (`.`), which are often hidden by default in Linux.

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

ls -A

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

Pro-Tip: For a more detailed view including permissions, ownership, and size, combine it with `-l`: ls -lA

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

0 0 votes
Article Rating
Exit mobile version