--- layout: page category-page: fs category-title: FileSystem tags: directory list remove delete erase author: Mattia Hijman title: Touch previous-page: pages/fs/rm.html ---
touch [-A [-][[hh]mm]SS] [-acfhm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]]
           file ...
The touch utility sets the modification and access times of files. If any file does not exist, it is created with default permissions.
By default, touch changes both modification and access times. The -a and -m flags may be used to select the access time or the modification time individually. Selecting both is equivalent to the default. By default, the timestamps are set to the current time. The -t flag explicitly specifies a different time, and the -r flag specifies to set the times those of the specified file. The -A flag adjusts the values by a specified amount.
The following options are available: