Multiple choice unix

Which of the following commands is used to obtain a list of all files by modification time?

  1. ls -1

  2. ls -t

  3. ls -i

  4. ls -R

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

The ls -t command sorts files by modification time, showing the most recently modified files first. This is the standard option for listing files chronologically by when they were last changed.