Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1340
  • Last Modified:

how to change the date and time in redhat 6.2

Hi,

I have one old redhat server i need to change the date and time for this server.Can some one give me the syntax or the format to change in redhat 6.2

Thanks
0
gg234
Asked:
gg234
2 Solutions
 
m1tk4Commented:
date --set=20060523

for 23rd of May 2006

date --set=1435

for 2:35PM
0
 
wesly_chenCommented:
> old redhat server
As root run
dateconfig

or in X-window terminal run
redhat-config-date

and reset the date and time. Even further you can sync your time with your time server if it can connect to internet.
(as root)
ntpdate -u clock2.redhat.com
0
 
ibu1Commented:
redhat-config-date
from X-window
0
 
bryanlloydharrisCommented:
Also there may be a symbolic link like this:
/etc/localtime -> /usr/share/zoneinfo/US/Central

But I have redhat 7.2 so maybe that file is not there for you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now