Review your favorite Linux distribution.
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 08-19-2004, 07:23 AM   #1
Registered: May 2002
Posts: 401

Rep: Reputation: 30
change the time from the command line


How can I change the hour from the command line ?

Old 08-19-2004, 07:59 AM   #2
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
from root date 091909002004 thats the date0919 the time 0900 and year 2004.
Old 08-19-2004, 01:14 PM   #3
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
my favorite .. in /root/.bashrc
(find a local time server that works for you)
alias set_clock='/usr/local/bin/ntpdate -s'
Old 10-31-2007, 02:11 AM   #4
LQ Newbie
Registered: Oct 2007
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
as superuser
date -s HH:MM:ss


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
Network time through command line? Phaethar Linux - Software 2 05-06-2005 02:33 PM
setting the time in command line DJOtaku Linux - General 11 04-15-2005 11:41 AM
Time commands from command line ToothlessRebel Linux - Newbie 1 03-09-2005 10:52 AM
setting system time via the command line ibm5_25 Linux - Software 3 01-18-2004 10:41 PM
altering the time at the command line vendemmian Linux - General 1 05-01-2001 06:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 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
Open Source Consulting | Domain Registration