Multiple choice technology operating systems

What command is used to list the contents of directory with its permissions?

  1. ls

  2. ls -l

  3. ls -lrt

  4. ls directoryname

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

The ls -l command displays directory contents in long format, which includes file permissions (like -rwxr-xr-x), owner, group, file size, and timestamp. Plain ls only shows filenames. The -l flag is specifically what enables the detailed permission display.