Roine

touch to update a file timestamp

January 23, 2019

Touch is mainly known for creating files. Touch main purpose is actually to update the file’s timestamp. From the man:

The touch utility sets the modification and access times of files. If any file does not exist, it is created with default permissions.