Skip to Content
gnux

-m, --modification-time

Change only the modification time.

An option of touchx.

Usage

touchx -m FILE...
touchx --modification-time FILE...

Details

ShortLongValueDefaultMeaning
-m--modification-timenonechange only the modification time

Examples

Set only the modification time to a specific date

touchx -m -d '2024-01-02 15:04:05' report.pdf

Copy just the modification time, and only to files that already exist

touchx -c -m -r original.jpg edited.jpg report.pdf

Help in the terminal

gnux help touchx --modification-time

On this page