Online Linux Terminal Logo
OnlineLinuxTerminal
Opérations sur les fichiersCLI Manual

$touch

Create empty files or update file access and modification timestamps.

Syntaxe de la commandePOSIX Standard
touch [OPTIONS] FILE...
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`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.

Options et drapeaux courants

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

Exemples pratiques du monde réel

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

Creates three empty files in the current folder.