Online Linux Terminal Logo
OnlineLinuxTerminal
DateioperationenCLI Manual

$touch

Create empty files or update file access and modification timestamps.

BefehlssyntaxPOSIX Standard
touch [OPTIONS] FILE...
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

`touch` is the standard tool for quickly creating empty placeholder files or updating the access and modification timestamps of existing files to the current system time.

Wichtige Optionen und Flags

Flag / OptionDescription
-aChange only the access time.
-mChange only the modification time.
-cDo not create any files if they do not already exist.

Praktische Anwendungsbeispiele

#1Create multiple new empty files
touch server.js config.json .env && ls -l

Creates three empty files in the current folder.