Multiple choice general knowledge science & technology

Which of the following command can be used to list the file with the last modified file to be listed at the bottom?

  1. ls

  2. ls -l

  3. ls -ltr

  4. ls -la

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

The 'ls -ltr' command lists files in long format (-l), reverse (-r) and by modification time (-t). This combination shows the most recently modified files at the bottom, which is the standard Unix/Linux approach for viewing files with oldest first. The 'r' flag reverses the default order.