Multiple choice technology operating systems

I need the list of files in a csv format(comma separated values format).What will be my command?

  1. ls -m

  2. ls -mlrt

  3. ls -mrt

  4. Both A(ls -m) and C(ls -mrt)

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

Both ls -m and ls -mrt produce comma-separated output. The -m flag specifically formats output as comma-separated with stream spacing. The -mrt combination includes -m (comma format) with -r (reverse sort) and -t (sort by time). Both produce CSV format, just with different sorting options. Option B's -mlrt combines -m with -l (long format), -r, -t which doesn't make sense as -l and -m are mutually exclusive.