When I need to find my recently used files, this command:
ls -lt
lists in ascending order (by time), when there are lots files, I need to scroll to
the top to see needed files, because won't fit in terminal screen.
After finding out that tac
inverses the output, I use: ls -lt dir/ | tac
Is there more fun way of doing it, without using external scripts/utils?
Best Answer
The
-r
does the same thing forls
astac
does for any command which needs reverse file ordering.So you could just write
From man page: