Skip to Content
gnux

-t, --stamp

Use [[CC]YY]MMDDhhmm[.ss] STAMP instead of current time.

An option of touchx.

Usage

touchx -t STAMP FILE...
touchx --stamp=STAMP FILE...

Details

ShortLongValueDefaultMeaning
-t--stampSTAMPuse [[CC]YY]MMDDhhmm[.ss] STAMP instead of current time

Examples

Use a [[CC]YY]MMDDhhmm[.ss] stamp

touchx -t 202401021504.05 report.pdf

Backdate only the access time with a stamp

touchx -a -t 202001010000 app.log

Help in the terminal

gnux help touchx --stamp

On this page