To view the current date and time, issue the date command:
Then view and set your time zone:
cd /usr/share/zoneinfo
I’m going to use the GMT time zone.
Copy the file with your timezone. (this could be ./Europe/London or whatever city you would like to use).
Change the date and time in Linux via BASH:
For this purpose we will use the following command format:
date 082314422014 ### August/23rd/14:44/2014 ## Date /month/ day/ hour/ minutes/ year
Leave a Reply