Multiple choice technology operating systems

How to list the directory and files structure up to a depth of one directory

  1. ls -ltr

  2. ls -R

  3. ls *

  4. ls -L2

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

The command ls * lists files in the current directory and also lists the contents of immediate subdirectories (depth of one), effectively showing the structure up to one level deep.