How do I list directories by their access time in the sense that some new files/directories are created (say, directories containing the most recently created files).
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
There are a couple of options that you can combine. The -c with -lt: sort by, and show, ctime (time of last modification of file status information) with -l: show ctime and sort by name otherwise: The -t sort by modification time You could put it all together like so [2]:
[1] http://unixhelp.ed.ac.uk/CGI/man-cgi?ls [2] |
||||
|
|

man lsfor a full list of options including various sort possibilities. – Caleb Jun 10 '11 at 7:39