How do we get hidden files in a directory
-
ls -l
-
ls -ltr
-
ls -a
-
ls -h
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.