Shell / Commands

touch

English

Overview

A command for creating an empty file or changing its modification time.

Details

A command that creates an empty file if the specified one doesn't exist, or updates its timestamp if it does. The -d or -t options let you set an arbitrary timestamp instead, which is also used to deliberately nudge a build tool's dependency checks.

More Linux terms