Hacking Arts
[Solaris] Crontab,link and Script(갈무리 기능) 본문
<crontab>
명령어를 주기적으로 실행시켜주는 table이라고 해두자!
중요한 이유 crontab의 경우 능동적으로 생각해서 짜야됨!
crontab -e [user명/default : root] : crontab을 수정 시키겠다는 의미
crontab -l [user명/default : root] : crontab의 파일 내용을 출력해줌
crontab -r [user명/default : root] : crontab의 파일을 삭제
------crontab안의 내용을 보면-----
[0~59 Minutes] [0~23 Hours] [1~31 Date] [1~12 Month] [0(日)~6(土) Day-of-Week] [실행 명령어]
ex) 30 1 * 2,4,6,8,10,12 * [실행 명령어] : 짝수 개월의 매일 1시 30분에 실행명령어를 실행시킨다
* : wild card
, : 중복으로 말해줌
/etc/cron.d/cron.allow : 허용 해주는 파일
/etc/cron.d/cron.deny : 금지 시키는 파일
allow > deny : allow를 더 우선시함
<link>
hard link : 이름을 하나 더 붙여준다고 생각하자!
ln -f [원래 file] [붙여줄 file명]
soft link : 별명을 붙인다고 생각하자!! 제약조건이 적음
ln -s [원래 file] [붙여줄 file명]
<script>
갈무리 기능으로써 이 명령어를 실행시키면 어떠한 파일에 자신의 터미널에 나왔던 내용들을 그대로 넣어줌
script [파일명] -> 시작
ctrl + d -> 종료
'Computer & ETC > Solaris' 카테고리의 다른 글
[Solaris] 시스템 종료와 nfs(Network File System) (0) | 2014.08.23 |
---|---|
[Solaris] Directory Architecture(디렉토리 구조) (0) | 2014.08.23 |
[Solaris] Fsck(Fike System ChecK) (0) | 2014.08.23 |
[Solaris] OK mode 와 Disk읽는 법 (0) | 2014.08.23 |
[Solaris] Booting 과정 (0) | 2014.08.23 |