Site icon New Generation Enterprise Linux

Master Your Terminal: Unmasking Hidden Files with `ls -A`

Quick Tip

Master Your Terminal: Unmasking Hidden Files with `ls -A`

Challenge: You’re working in a directory and need to see all files, including those that start with a dot (hidden files), which are typically not shown by the default `ls` command.

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 provides a comprehensive view of all files and directories, including hidden ones, without cluttering the output with the directory self-references.

Pro-Tip: Combine ls -A with -l for a detailed, hidden-file-inclusive listing: ls -lA

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

0 0 votes
Article Rating
Exit mobile version