LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2006, 04:10 AM   #1
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Rep: Reputation: 15
Date in linux


I'm using Redhat linux 3.0 Advance server, when use command "date". I can see the current date. Now I want to change system date and display the with format date "dd/mm"yyyy" . How can I do?
 
Old 07-04-2006, 04:26 AM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
you want to use "date +%d/%m/%Y"
if you want to use that as default then set an alias for it.
 
Old 07-04-2006, 04:30 AM   #3
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Original Poster
Rep: Reputation: 15
How can I set a lias for date?
 
Old 07-04-2006, 04:31 AM   #4
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Original Poster
Rep: Reputation: 15
SOmeone haslinux book, please give me. I need it
 
Old 07-04-2006, 04:35 AM   #5
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
pls refer to "man date"
 
Old 07-04-2006, 04:45 AM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
if your in bash, add to your ~/.bashrc
Code:
alias date="date +%d/%m/%Y"
also "man date" or even "date --help" will give you enough info to get date to output date/time in a variety of ways.
 
Old 07-04-2006, 04:46 AM   #7
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
SOmeone haslinux book, please give me. I need it

http://www.chongluo.com/books/rute/
 
Old 07-04-2006, 04:51 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
LXer: Linux Patch Management: Keeping Linux Systems Up to Date LXer Syndicated Linux News 0 03-28-2006 11:33 PM
LXer: Book Review: Linux Patch management - Keeping Linux systems up to date LXer Syndicated Linux News 0 02-07-2006 06:46 AM
Linux Release Date codedv Linux - General 1 12-16-2003 06:58 AM
keep linux up to date heathpitts Linux - Software 12 11-27-2003 06:23 AM
lastlog date does not match system date? jcmj Linux - Networking 6 10-22-2002 01:09 PM

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

All times are GMT -5. The time now is 06:52 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