What does Linux touch -a option do?

You can use touch -a option to modify only the access time of a file in Linux.

Example:

Create a new file:

Get the file Access time

Update the file access time only

Get the file Access time

Observe myfile Access time has been changed.

Leave a Reply