How to change time on Linux systems
Article ID: |
|
000002 |
Rating: |
|
5.0 / 5.0 (1 votes)
|
Views: |
|
5074 |
|
Problem:
How to change time on Linux
Solution:
The easiest way to change time in a unix system is to use the date command with the --set option.
ie:
[hpn@scifleet hpn]$ date
Fri Dec 16 10:55:23 EST 2005
to set the date to correct time (1030am at time of writing) use:
date --set="Fri Dec 16 10:30:00 EST 2005"
This operation must be performed as the root user.
<< back
|