touch -m file.txt

Category: File Operations

touch -m file.txt

Update only the modification time of a file

Updates only the modification time (when the file was last changed) without changing the access time.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.