게시물 1,376건
   
hwclock
글쓴이 : 최고관리자 날짜 : 2014-01-09 (목) 12:36 조회 : 6763
글주소 :
                                
hardware clock 정보 표시하고 설정

※ 아래는 시스템 시간과 하드웨어 시간이 차이가 나는상황

# date

Thu Jan  9 12:25:32 KST 2014


# hwclock

Thu Jan  9 21:25:51 2014  -0.891226 seconds



- hardware clock으로 부터 system clock을 맞춤

# date

Thu Jan  9 21:26:33 KST 2014

# hwclock

Thu Jan  9 21:26:40 2014  -0.047460 seconds



- system clock으로 부터 hardware clock을 맞춤

# hwclock --systohc

# date

Thu Jan  9 12:27:44 KST 2014

# hwclock

Thu Jan  9 12:27:49 2014  -0.109999 seconds




Usage:
 hwclock [function] [option...]

Functions:
 -h, --help           show this help text and exit
 -r, --show           read hardware clock and print result
     --set            set the RTC to the time given with --date
 -s, --hctosys        set the system time from the hardware clock
 -w, --systohc        set the hardware clock from the current system time
     --systz          set the system time based on the current timezone
     --adjust         adjust the RTC to account for systematic drift since
                        the clock was last set or adjusted
     --getepoch       print out the kernel's hardware clock epoch value
     --setepoch       set the kernel's hardware clock epoch value to the
                        value given with --epoch
     --predict        predict RTC reading at time given with --date
 -V, --version        display version information and exit

Options:
 -u, --utc            the hardware clock is kept in UTC
     --localtime      the hardware clock is kept in local time
 -f, --rtc <file>     special /dev/... file to use instead of default
     --directisa      access the ISA bus directly instead of /dev/rtc
     --badyear        ignore RTC's year because the BIOS is broken
     --date <time>    specifies the time to which to set the hardware clock
     --epoch <year>   specifies the year which is the beginning of the
                        hardware clock's epoch value
     --noadjfile      do not access /etc/adjtime; this requires the use of
                        either --utc or --localtime
     --adjfile <file> specifies the path to the adjust file;
                        the default is /etc/adjtime
     --test           do not update anything, just show what would happen
 -D, --debug          debugging mode

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.