~/.profile 에 추가 한다.
export PS1='['`uname -n`:'${PWD}] '
~/.profile 에 추가 한다.
export PS1='['`uname -n`:'${PWD}] '
1. 시간을 수동으로 변경
#date 042817052009
month : 4 월
day : 28 일 (day)
hour : 17 (오후 5 시)
minute : 05 분
year : 09 년 (2006)
2. 시간을 조금 씩 앞당기는 방법
#date -a 240 (240초가 빨라질때 까지 시간을 조금씩 빠르게 합니다. )
#crontab -e
0 * * * * date -a 240 -->한 시간에 4분정도씩 자동으로 시간을 맞출 수 있습니다.
#
3. ntp 서버를 이용 하여 time 동기화
#/usr/sbin/ntpdate 172.20.26.140 <-NTP서버 주소
#crontab -e
0 * * * * /usr/sbin/ntpdate 172.20.26.140 <- 한 시간에 한 번 ntp time sync
* * * * * /usr/sbin/ntpdate 172.20.26.140 <- 1분간격으로 실행
10,20,30,40,50,60 * * * * /usr/sbin/ntpdate 172.20.26.140 <- 10분간격으로 실행
4. ntp 한국 타임 서버 셋팅
- ntpdate time.bora.net
ntpdate -d 211.115.194.21
- ntpdate time.windows.com (추천)
ntpdate -d 207.46.232.182
Number |
Permission(s) Set |
0 (zero) |
No Permissions (the user(s) cannot do anything) |
1 |
Execute Only (the user(s) can only execute the file) |
2 |
Write Only (the user(s) can only write to the file) |
3 |
Write and Execute Permissions |
4 |
Read Only |
5 |
Read and Execute Permissions |
6 |
Read and Write Permissions |
7 |
Read, Write and Execute Permissions |
sun에서
% hostid
하면 hostid가 16진수로 나옴
윈도우즈에선
c:\vol c: 하면
디스크 볼륨일련번호가 hostid임