Online Linux Terminal Logo
OnlineLinuxTerminal
Operaciones de archivosCLI Manual

$touch

Create empty files or update file access and modification timestamps.

Sintaxis del comandoPOSIX Standard
touch [OPTIONS] FILE...
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

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

Opciones y banderas comunes

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

Ejemplos prácticos del mundo real

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

Creates three empty files in the current folder.