LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-02-2003, 02:15 AM   #1
bigcletus
LQ Newbie
 
Registered: Jun 2003
Posts: 16

Rep: Reputation: 0
need help with date command syntax


I have read the man page and info page and done an internet search, but I am still having a hard time understanding what I need to enter in order to change the date/time? Any help is greatly appreciated. Thanks.
 
Old 08-02-2003, 02:40 AM   #2
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 30
You login as root, and then you just enter by the prompt "date MMDDHHMM". For instance, if I wanted to change the date to six hours ahead of my current time - which happens to be EST, although (or rather, since) I'm in Chile - I'd write "date 08020840". See?

Edit: Ah, to change the year also, it seems that you just append the year at the end of the date string.





Last edited by Bebo; 08-02-2003 at 02:45 AM.
 
  


Reply


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
cp command syntax plisken Linux - General 3 11-09-2005 03:51 PM
Command Syntax Ask swan2925 Linux - Software 1 06-06-2005 10:50 AM
command syntax Jeebizz Slackware 1 04-14-2005 11:55 PM
Syntax for setting up the date via Command line. Lespuff Linux - Newbie 1 11-20-2003 08:35 PM
Command Syntax BittaBrotha Linux From Scratch 4 08-15-2002 01:36 PM


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

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