Site icon New Generation Enterprise Linux

Unmasking Hidden Files with `ls -A`

Quick Tip

Unmasking Hidden Files with `ls -A`

Challenge: By default, the ls command doesn’t show hidden files and directories (those starting with a dot). This can make it difficult to manage configuration files or see all contents of a directory.

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

ls -A

Why it works: The -A option tells ls to list all entries except for the implied . (current directory) and .. (parent directory).

Pro-Tip: To see absolutely all files, including hidden ones and special entries for current and parent directories, use ls -a.

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

0 0 votes
Article Rating
Exit mobile version