HxHippy

touch

Change file timestamps or create empty files

Overview

Updates the access and modification times of each specified file to the current time. If a file does not exist, it is created empty, unless -c or -h is supplied.

Syntax

touch [OPTION]... FILE...

Examples

$ touch newfile.txt

Create an empty file named newfile.txt or update its timestamp if it exists.

timestampcreateemptyfilemodifytouch