Multiple choice technology operating systems

How do we get hidden files in a directory

  1. ls -l

  2. ls -ltr

  3. ls -a

  4. ls -h

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The ls -a command displays all files in a directory including hidden files (those starting with a dot). The -l flag shows long format, -ltr sorts by time reversed, and -h shows human-readable sizes, but only -a reveals hidden files like .gitignore or .bashrc.