Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-31-2008, 04:11 PM   #1
Registered: Nov 2006
Posts: 80

Rep: Reputation: 15
How to change the time via console?

can anyone help me with the commands for changing time via console? im trying to update the time on a linux server running fedora 4 via an ssh session
Old 03-31-2008, 04:17 PM   #2
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
$ man date
Check this for a bit more info about time on Linux.
Old 03-31-2008, 04:35 PM   #3
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
Hope this can help...


Last edited by prad77; 04-17-2008 at 03:32 AM.
Old 04-01-2008, 04:03 AM   #4
Registered: Aug 2003
Distribution: Fedora 22, Debian 8, Centos 6/7 for servers
Posts: 101

Rep: Reputation: 16

providing your timezone is setup correctly
Old 02-16-2009, 09:49 PM   #5
LQ Newbie
Registered: Oct 2006
Posts: 13

Rep: Reputation: 0
response to chaning system time

I know this is an old post but just in case someone is searching for the real answer here we go; in order to set the system time the only thing you need to do is:

date --set HH:MM:SS

This under Debian but should be the same in any Linux Distro.
Old 02-16-2009, 11:16 PM   #6
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up HI

Hello my friend. This is how to set date and time but it requires root access. The coomand is

date --set='Wed FEB 16 12:12:12 CST 2009'

Thats it. All the best.
Old 02-16-2009, 11:20 PM   #7
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
There are many different ways. man date will show you all of them.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
world time on console noir911 Linux - General 3 11-07-2006 09:43 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
Need ACCESS to change files! Every time I try to change a setting,"Permission Denied" Balarabay1 SUSE / openSUSE 2 03-06-2006 09:54 AM
Daytime Saving time. Cannot change time arubin Linux - General 9 11-06-2004 04:37 PM
how much time are you on the console? gui10 Linux - General 14 04-17-2002 12:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration