BLOG main image
전체 (276)
[Computer] (42)
[Programming] (62)
[DBMS] (26)
[Operating System] (21)
[Study English] (8)
[For money] (28)
[Interest] (89)
«   2009/11   »
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          
77890 Visitors up to today!
Today 82 hit, Yesterday 46 hit
[폭주기관차, 2008/06/14 09:06, [Operating System]/Linux / Unix]
우선 날짜를 바꾸기 위해선 root 권한으로 로그인을 해야한다.

그리고 아주 간단한 date라는 명령어로 날짜와 시간을 변경해줄 수 있다.

date -s [날짜] [시간]


이런 양식으로 사용하면 된다.

아래는 내가 리눅스로 직접 실험한 예제이다.

[root@test ~]# date
2005. 01. 07. (금) 00:18:16 KST

[root@test ~]# date -s 2008-06-14
2008. 06. 14. (금) 00:00:00 KST
[root@test ~]# date -s 08:38:40
2008. 06. 14. (금) 08:38:40 KST

테스트 환경 : CentOS release 5 (Final)

Trackback Address :: http://kongmks.cafe24.com/trackback/293
Name
Password
Homepage
Secret
*1 ... *4 *5 *6 *7 *8 *9 *10 *11 *12 ... *276