Site icon New Generation Enterprise Linux

Tame Your Terminal: Unmask Hidden Files with `ls -A`

Quick Tip

Tame Your Terminal: Unmask Hidden Files with `ls -A`

Challenge: You’re trying to list all files in a directory, including those that start with a dot (hidden files), but `ls` by itself doesn’t show them. You need a quick way to reveal these often-important configuration files.

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

ls -A

Why it works: The `-A` option for `ls` lists all entries except for `.` (current directory) and `..` (parent directory). This is perfect for seeing configuration files and other hidden items without the clutter of the directory navigation entries.

Pro-Tip: For a more visually appealing and detailed listing of all files (including hidden ones), combine `-A` with `-l` (long listing format) and `-h` (human-readable file sizes): ls -Alh.

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

0 0 votes
Article Rating
Exit mobile version