How can I sort all files and directories on my harddrive in order of most recent access?
Access by myself or by a program.
I would like to see the old stuff I have lying around that just doesn't get used.
How can I sort all files and directories on my harddrive in order of most recent access?
Access by myself or by a program.
I would like to see the old stuff I have lying around that just doesn't get used.
Open a new finder window with CMD+n. If it doesn't default to "Recents" - choose it. Hit the cog, and choose "Show Search Criteria".
This takes you to a "Raw query" (other views will also do the same - I just use this as it's not grouped), choose to view by "list";
This enables the column headings, which you can now use to affect the sorting order. Just click on "Date Last Opened" until it sorts by oldest first;
And ... that's it! Obviously, it won't care about files you've never opened but that's fine. TBH, I use CleanMyMac for this type of thing, as it builds an index so you can sort by various attributes (e.g. file size is a good one) very easily.
lsin Terminal, or something else? – nohillside Dec 17 '21 at 06:34man lsthen :-) – nohillside Dec 17 '21 at 15:21