cd /etc
rm -f localtime
ln -s /usr/share/zoneinfo/US/Eastern localtime
date MMDDhhmmYYYY
# example> date 010117302013
# January 1, 2013 5:30PM
# note: 24-hour time for hh
Linux Set date, time and timezone
When setting the date and time for your server, it's also important to set the correct time zone.
Snippet Viewed 1983 times.
Share your Linux code snippets:
- Get some recognition & a link back to your site.
- Create your own code library.
- Help your fellow developers, as they have helped you.
Related Articles