View dates that files are accessed

Joined
Feb 21, 2013
Messages
1
Reaction score
0
Points
1
I recently discovered that someone had hacked into my computer and viewed various files. Since then, I have opened many files without realizing that they had been accessed without my permission. I was wondering if there was a way to view all the dates and times that files were accessed rather than just the most recent time. Thank you.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,745
Reaction score
2,071
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
You can't do it from the UI and it isn't something you want to rely on entirely..but you can sort files in a directory based on their access time as opposed to modification time..

Open up the terminal and enter the following command:
Code:
cd <directory>
ls -lutr

The options are [l]ong, se access time, sor[t], [r]everse sort order..

This will now show you the most recently access files at the bottom and as you scroll up, you'll see files accessing earlier on..
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top