본문 바로가기

반응형

rdate

rdate 명령어 | 시간 동기화 rdate 명령어 rdate 명령어는 리눅스나 유닉스 시스템에서 시간 서버로부터 시간 정보를 가져오는 명령어입니다. rdate 명령어는 특정 시간 서버와 동기화하여 시스템 시간을 조정하는 데 사용됩니다. 일반적으로는 다음과 같이 사용됩니다. rdate 명령어 설치 rdate 명령어는 대부분의 리눅스 시스템에 기본적으로 설치되어 있습니다. 따라서 별도의 설치 과정이 필요하지 않을 수 있습니다. rdate 명령어 사용 예시 rdate 명령어는 다음과 같은 구문을 가집니다. rdate [옵션] [서버 주소] [서버 주소]: 시간 정보를 가져올 시간 서버의 주소입니다. 일반적으로 공용 NTP(Network Time Protocol) 서버를 사용합니다. 원격지(time.bora.net) 시간 확인 rdate -p.. 더보기
[리눅스] localtime 한국(서울)로 변경하기 localtime 한국(서울)로 변경하기 localtime # ls -al /etc/localtime -rw-r--r-- 1 root root 3519 Feb 26 2006 /etc/localtime 한국(서울) localtime 으로 변경하기 # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime # ls -al /etc/localtime lrwxrwxrwx 1 root root 30 May 15 01:02 /etc/localtime -> /usr/share/zoneinfo/Asia/Seoul 시간 동기화 rdate -s time.bora.net && clock -w 더보기
[crontab] 시간 동기화 [crontab] 시간 동기화 [root@scbyun slave]# crontab -e 설정 00 03,15 * * * /usr/bin/rdate -s time.bora.net && clock -w &> /dev/null [root@scbyun slave]# crontab -l 확인 00 03,15 * * * /usr/bin/rdate -s time.bora.net && clock -w &> /dev/null 더보기

728x90
반응형