How to change date and time in linux?
To set the system clock under Linux, use the
command. As an example, to set the current time and date to July 31,
11:16pm, type ``
given in 24 hour notation). If you wanted to change the year as well,
you could type ``
as well, type ``
time is, run
Other ToolBar related
To set the system clock under Linux, use the
date
command. As an example, to set the current time and date to July 31,
11:16pm, type ``
date 07312316
'' (note that the time isgiven in 24 hour notation). If you wanted to change the year as well,
you could type ``
date 073123161998
''. To set the secondsas well, type ``
date 07312316.30
'' or ``date
073123161998.30
''. To see what Linux thinks the current localtime is, run
date
with no arguments.Other ToolBar related
rdate
- get the current time from a remote machine;
can be used to set the system time.xntpd
- likerdate
, but it's extremely
accurate and you need a permanent 'net connection.xntpd
Runs continuously and accounts for things like network delay and clock
drift, but there's also a program (ntpdate
) included that
just sets the current time like rdate does.
No comments:
Post a Comment