touch file.txt

Category: File Operations

touch file.txt

Create an empty file or update its timestamp

Creates a new empty file if it doesn't exist, or updates its timestamp to 'now' if it does — without changing its contents.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.