LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Date in linux (https://www.linuxquestions.org/questions/linux-newbie-8/date-in-linux-460808/)

lieuquocdat 07-04-2006 03:10 AM

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?

binary_y2k2 07-04-2006 03:26 AM

you want to use "date +%d/%m/%Y"
if you want to use that as default then set an alias for it.

lieuquocdat 07-04-2006 03:30 AM

How can I set a lias for date?

lieuquocdat 07-04-2006 03:31 AM

SOmeone haslinux book, please give me. I need it

xgreen 07-04-2006 03:35 AM

pls refer to "man date"

binary_y2k2 07-04-2006 03:45 AM

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.

JunctaJuvant 07-04-2006 03:46 AM

SOmeone haslinux book, please give me. I need it

http://www.chongluo.com/books/rute/

XavierP 07-04-2006 03:51 PM

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


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