Solaris Advanced User's Guide

Creating a Test File

Use the touch command to create an empty file.

$ touch tempfile

If a file by the name you specify does not exist, the touch command creates an empty file.

Note –

If the file already exists, touch updates the last file access time.