=====Datum und Uhrzeit unter Linux===== Zeit und Datum einstellen auf Thu Feb 12 22:04:00 MST2004 ""MMDDhhmmYY"" %%(bash) date 0212220404 %% Zeit und Datum einstellen auf Thu Feb 12 22:04:00 MST2004 ""MMDDhhmmCCYY"" %%(bash) date 021222042004 %% Datum anzeigen im Format 10.02.2001 %%(bash) date +%d.%m.%Y %% Datum anzeigen im Format [[http://de.wikipedia.org/wiki/ISO_8601 ISO 8601]] (z.B. 2001-02-10) %%(bash) date +%Y-%m-%d %% Uhrzeit anzeigen im Format 20:35 %%(bash) date +%H:%M %% Seconds since 1970-01-01 00:00:00 UTC %%(bash) date +%s %% Zeitsynchronisation mit rdate %%(bash) rdate time.fu-berlin.de %% Zeitsynchronisation mit NTP (Paket ntpdate) %%(bash) ntpdate ptbtime2.ptb.de %% Dateiarchiv mit Datum versehen im Format archive_20080210.tar.gz %%(bash) mv archive.tar.gz archive_`date +%Y%m%d`.tar.gz %% Für Server in Deutschland in /etc/ntp.conf %%(,,/etc/ntp.conf) 0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org %% ---- Siehe auch {{backlinks}}