0

How to use the date command to display, for example, 10-Mar-2010 01:01:53? What's the format string?

1
  • 5
    Is your man page broken? Is Google down?
    – S.Lott
    Jun 15, 2010 at 14:29

2 Answers 2

7

See date manual:

date '+%d-%b-%Y %H:%M:%S'
3

Read the manpage (man date)!

date +"%d-%b-%Y %T"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .