DateioperationenCLI Manual
$touch
Create empty files or update file access and modification timestamps.
BefehlssyntaxPOSIX Standard
touch [OPTIONS] FILE...Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Ü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 / Option | Description |
|---|---|
| -a | Change only the access time. |
| -m | Change only the modification time. |
| -c | Do not create any files if they do not already exist. |
Praktische Anwendungsbeispiele
#1Create multiple new empty files
touch server.js config.json .env && ls -lCreates three empty files in the current folder.
Verwandte Linux-Befehle
$findDateioperationen
Durchsuchen Sie Verzeichnishierarchien nach Dateien basierend auf Name, Typ, Größe oder Änderungsdatum.
$catDateioperationen
Dateiinhalte verketten und auf der Standardausgabe ausgeben.
$mkdirDateioperationen
Create new directories and folder hierarchies.
$rmDateioperationen
Remove files or directories from the filesystem.
$cpDateioperationen
Copy files and directories to a destination path.
$mvDateioperationen
Move or rename files and directories.