Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

touch

Create empty file or update timestamp

Syntax

touch [OPTION]... FILE...

Common Options

-aUpdate access time only
-mUpdate modification time only
-cDo not create file
-tSpecify timestamp

Common Examples

touch file.txt

Create empty file

touch -t 202401011200 file.txt

Set specific time

Related Commands

Related Tools

More Code & Dev Tools