This simple tutorial is going to show Ubuntu beginners how to display and change date and time on Ubuntu Linux both Server and Desktop.
To display data and time, use date command:
root@eddy:/home/eddy# date
Thu Mar 6 14:11:14 WIB 2014
root@eddy:/home/eddy#
Thu Mar 6 14:11:14 WIB 2014
root@eddy:/home/eddy#
To display calendar, use cal command:
root@eddy:/home/eddy# cal
March 2014
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
root@eddy:/home/eddy#
March 2014
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
root@eddy:/home/eddy#
To change date and time:
sudo date -s"7 march 2014 14:58"
checking the timezone file at
root@eddy:/home/eddy# more /etc/timezone
Asia/Jakarta
Asia/Jakarta
So to change it just run
root@eddy:/home/eddy# sudo dpkg-reconfigure tzdata
And follow on screen instructions. Easy.
Read more »»