Post
by laurencecatherine741 » Wed May 20, 2015 10:30 am
To show the current timezone in the file /etc/timezone, use the command:
cat /etc/timezone
To change this to the U.S. Los Angeles time, we need to modify the /etc/timezone file.
First step: edit the /etc/timezone file via vim or nano.
Vi editor:
vi /etc/timezone
Nano editor:
nano /etc/timezone
Second step: modify the file as shown below:
America/Los_Angeles
set the timezone from the terminal using the TZ variable.
export TZ=America/Los_Angeles