I know ls -t will list all files by modified time. But how can I limit these results to only the last n files?
ls -t
Use tail command:
tail
ls -t | tail -n 5