Site icon New Generation Enterprise Linux

Unmask Hidden Files with `ls -A`

Quick Tip

Unmask Hidden Files with `ls -A`

Challenge: You need to quickly see all files in a directory, including hidden dotfiles, without cluttering your output with `.` and `..`.

The Solution: Use the -A flag with ls.

ls -A

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

Pro-Tip: For a more visually organized view that includes hidden files and is color-coded, consider installing and using lsd (ls deluxe) and running lsd -a.

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

0 0 votes
Article Rating
Exit mobile version