"Christmas - the time to fix the computers of your loved ones" « Lord Wyrm

Unter Linux Zeit einstellen

Dumdideldum 26.09.2001 - 13:09 633 7
Posts

Dumdideldum

Here to stay
Avatar
Registered: Jun 2001
Location: Vienna
Posts: 1511
Weiß wer auswendig, wie man unter Linux die Zeit einstellt.
Hab mir date --help schon durchgeschaut, ich check das aber einfach nicht.
Am besten mit Beispiel :D

Dank

noledge

CWNE #540
Avatar
Registered: Apr 2001
Location: ::1
Posts: 6837
zuerst

date -s hh:mm:ss

dann

hwclock --systohc

grund: mit date setzt man die systemzeit im OS, diese wird erst mit hwclock mit der hardware-uhr im bios synchronisiert.

noledge
Bearbeitet von noledge am 26.09.2001, 13:18

DAO

Si vis pacem, para bellum
Avatar
Registered: Mar 2001
Location: Austria
Posts: 4928
date MMDDhhmmCCYY
M = month
D = Day
h = hour
m = minute
CCYY = year

date 092613242001

heist es is : 26.009.2001 und 13:24:00 uhr

Dumdideldum

Here to stay
Avatar
Registered: Jun 2001
Location: Vienna
Posts: 1511
Danke, das funkt ja wunderbar!
Behält Linux nun die neue Zeit, auch nach einem Neustart? Ich kann die Zeit nämlich nicht mit der Systemuhr synchronisieren, da ich nur SSH-Zugang habe, ansonsten müßte ich im System wieder Graka, Monitor usw. anschließen

Gruß

noledge

CWNE #540
Avatar
Registered: Apr 2001
Location: ::1
Posts: 6837
:confused:

hwclock funktioniert eh auch in der secure shell...

noledge

Dumdideldum

Here to stay
Avatar
Registered: Jun 2001
Location: Vienna
Posts: 1511
asso, ich hab geglaubt, die Hardwareuhr wird auf die Systemzeit übertragen. Na dann ists ja eh klar!

thanx

noledge

CWNE #540
Avatar
Registered: Apr 2001
Location: ::1
Posts: 6837
jo, hab mich falsch ausgedrückt :rolleyes: :)

noledge

that

Hoffnungsloser Optimist
Avatar
Registered: Mar 2000
Location: MeidLing
Posts: 11327
apt-get install rdate
rdate ts1.univie.ac.at

:cool:
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz