touch
Linux · Files · available in the simulator
What it does
Change file timestamps or create an empty file.
Syntax
touch [opciones] archivo...
Options and parameters
-aChange only the access time.
-mChange only the modification time.
-t STAMPUse [[CC]YY]MMDDhhmm[.ss] instead of current time
-cDo not create any files.
touch -c archivo.txt-tUse specified time with the [[CC]YY]MMDDhhmm[.ss] format.
touch -t 202601011200 archivo.txt-rUse this reference file's times instead of current time.
touch -r modelo.txt destino.txt
Usage examples
touch nuevo.txttouch -a archivotouch -t 202601011200 archivotouch notas.txttouch -d '2026-01-01' archivotouch -c archivo.txttouch -t 202601011200 archivo.txttouch -r modelo.txt destino.txt