Date Tags Linux

LINUX: set date, time or datetime

Set datetime:

$ sudo date -s "28 APR 2011 10:00:00"

Set only date:

$ sudo date +%Y%m%d -s "20110428"

Set only time:

$ sudo date +%T -s "10:00:00"

Comments

comments powered by Disqus