Outdated Translation

This entry is currently considered outdated and its contents may not be up-to-date with other translations.

Please considering fixing this issue by contributing to the tldr-pages project directly.

View original (English) version Contributing Guidelines


touch

Cambia el tiempo de accesso y modificación de un archivo (atime, mtime). Más información: https://manned.org/man/freebsd-13.1/touch.

  • Crea un archivo nuevo o cambia los tiempos de archivos existentes al tiempo actual:

touch archivo

  • Establece los tiempos de un archivo a un día y hora específicos:

touch -t YYYYMMDDHHMM.SS archivo

  • Usa los tiempos de un archivo para establecer los tiempos en otro archivo:

touch -r archivo archivo2