우분투 서버에서 타임존을 변경하기 위해 tzselect라는 명령어를 사용할 수 있습니다.
tzselect는 보여지기 위한 부분만 변경합니다
먼저 date 라는 명령어로 현재 설정되어 있는 시간을 확인해보면 아래와 같습니다.
root@test:~# date
Tue Mar 10 05:21:10 UTC 2015
이것을 한국으로 타임존을 변경하기 위해서 tzselect를 사용하면 아래와 같습니다.
보여지는 것을 한국 시간으로 변경하기 위해서 tzselect를 사용할 수 있습니다.
root@test:~# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#? 5
Please select a country.
1) Afghanistan 18) Israel 35) Palestine
2) Armenia 19) Japan 36) Philippines
3) Azerbaijan 20) Jordan 37) Qatar
4) Bahrain 21) Kazakhstan 38) Russia
5) Bangladesh 22) Korea (North) 39) Saudi Arabia
6) Bhutan 23) Korea (South) 40) Singapore
7) Brunei 24) Kuwait 41) Sri Lanka
8) Cambodia 25) Kyrgyzstan 42) Syria
9) China 26) Laos 43) Taiwan
10) Cyprus 27) Lebanon 44) Tajikistan
11) East Timor 28) Macau 45) Thailand
12) Georgia 29) Malaysia 46) Turkmenistan
13) Hong Kong 30) Mongolia 47) United Arab Emirates
14) India 31) Myanmar (Burma) 48) Uzbekistan
15) Indonesia 32) Nepal 49) Vietnam
16) Iran 33) Oman 50) Yemen
17) Iraq 34) Pakistan
#? 23
The following information has been given:
Korea (South)
Therefore TZ='Asia/Seoul' will be used.
Local time is now: Tue Mar 10 14:22:45 KST 2015.
Universal Time is now: Tue Mar 10 05:22:45 UTC 2015.
Is the above information OK?
1) Yes
2) No
#? 1
You can make this change permanent for yourself by appending the line
TZ='Asia/Seoul'; export TZ # ---> 이걸 복사해서 사용자 폴더에있는 .profile 맨 마지막에 추가해주세요.
to the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Seoul
exit and log in
'리눅스 > 우분투' 카테고리의 다른 글
리눅스 스크린샷(캡춰) 프로그램(Shutter) 설정 (0) | 2015.05.05 |
---|---|
/boot 용량이 부족할 때 (0) | 2015.05.01 |
Ubuntu 14.04 - root ssh login (setting) (2) | 2015.03.20 |
우분투 서버 타임존(time zone) 변경, 시간 변경 (1) | 2015.03.10 |
PNG 배경 검은색 지우기 (linux imagemagick) (0) | 2015.02.12 |
우분투 - 현재 로그인한 사용자 보기 (0) | 2015.02.11 |
Ubuntu Color Picker Application (0) | 2015.02.04 |
ignoring unknown interface (0) | 2015.02.04 |
잘 보고 갑니다.