Change Access and Modification Time
Change Modification Time
The m option, along with the touch command, changes the modification time of a file to the current time:
touch -m file_name.txt

Change Access and Modification Time
To change both access time and modification time with a single command, use the options a and m together:
touch -am file_name.txt
Now, check the date with both of these commands:
ls -l file_name.txt
ls -lu file_name.txt


