touch Command in Terminal

For touch command in Terminal on macOS.


Previously, I used touch -t to change any file and folder Date Created.

And, touch -mt to change the file and folder Date Modified.

And also, touch -at to change the Date Last Opened.


Currently just upgraded my MacBook to MBA M1 with macOS Sonoma.

However, I found that touch -at is not working anymore.

Is it any change on this touch command in order to change the file or folder Date Last Opened?

Posted on Feb 5, 2024 6:51 PM

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

touch Command in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.