Display the current date/time: $ date [+FORMAT] like: $ date +%H:%M:%S $ date +'%A, %B %d, %Y' $ date +%s Set the system date: $ date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] For FORMAT character sequences, see strftime.
cheat sheets.
$ command line ruby cheat sheets