LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 01:40 AM   #2
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
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 01:45 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 AM.

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
Open Source Consulting | Domain Registration