- 3,126 hits
Place for playing with commands…
ODOC: $ date . This date cmd will return current day,month,date,time,year. Wed JUl 7 10:13:26 IST 2010.
we can give many format option with date cmd from %a to %z and %A to %Z. For eg % date +%D, will return 07/07/10 only.
$date +%r will return 10:13:26 IST. $ date +%z will return our time zone in GMT format. +0530 hours. IST means Indian Standard Time.
This date cmd will be mainly used while we automate one prog to execute on particular date & time.
For more info use $ man date. 🙂