One Day One Cmd

Place for playing with commands…

Day 12 : $ date

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. 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: