Online Linux Terminal Logo
OnlineLinuxTerminal
Sistema y procesosCLI Manual

$date

Display or set system date and time.

Sintaxis del comandoPOSIX Standard
date [OPTIONS] [+FORMAT]
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

`date` prints or sets the system date, time, and timezone. In shell scripts, it is commonly formatted (e.g., `date +%Y-%m-%d`) to generate timestamped backup filenames and logs.

Opciones y banderas comunes

Flag / OptionDescription
+%Y-%m-%dFormat output as Year-Month-Day (e.g., 2026-08-29).
-u, --utcPrint date and time in Coordinated Universal Time (UTC).

Ejemplos prácticos del mundo real

#1Print current date and time

Outputs the standard system timestamp.