Difference between revisions of "Date"

From Linuxintro
imported>ThorstenStaerk
(New page: date is a command to show or set the current system date and time. Examples: * show the date date Fri Apr 17 13:21:55 EDT 2009 * set the date; in this example to april-20, 2009 ...)
 
imported>ThorstenStaerk
Line 7: Line 7:
 
* set the date; in this example to april-20, 2009
 
* set the date; in this example to april-20, 2009
 
  sudo date -s 20090420
 
  sudo date -s 20090420
 +
 +
[[Category:Command]]

Revision as of 13:04, 22 December 2011

date is a command to show or set the current system date and time.

Examples:

  • show the date
date
Fri Apr 17 13:21:55 EDT 2009
  • set the date; in this example to april-20, 2009
sudo date -s 20090420