What do I do if I want the list of files from some specific directory, as per their usage?
That is, I want a list of files in ascending order as per their last usage with respect to time. In that case the file that was accessed last should be listed first.
Best Answer
You can use
Explanation:
ls -l
lists the files with the detailed list format--time=atime --sort=t
sets the sorting order to the time of the last accessExample:
After some minutes:
Conclusion:
does what you need