리눅스 기타 명령..
Crontab
[com@localhost ~]$ cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly // 매시간
02 4 * * * root run-parts /etc/cron.daily // 매일
22 4 * * 0 root run-parts /etc/cron.weekly // 매주
42 4 1 * * root run-parts /etc/cron.monthly // 매월
[root@localhost cron.daily]# pwd
/etc/cron.daily
[root@localhost cron.daily]# ls -l
합계 68
-rwxr-xr-x 1 root root 379 3월 28 2007 0anacron
lrwxrwxrwx 1 root root 39 10월 6 21:49 0logwatch -> /usr/share/logwatch/scripts/logwatch.pl
-rwxr-xr-x 1 root root 118 3월 14 2007 cups
-rwxr-xr-x 1 root root 180 1월 7 2007 logrotate
-rwxr-xr-x 1 root root 418 1월 6 2007 makewhatis.cron
-rwxr-xr-x 1 root root 137 3월 15 2007 mlocate.cron
-rwxr-xr-x 1 root root 2181 11월 22 2006 prelink
-rwxr-xr-x 1 root root 114 3월 15 2007 rpm
-rwxr-xr-x 1 root root 290 3월 15 2007 tmpwatch
[root@localhost cron.daily]#
#Crontab TEST (1분마다 메세지 출력) - 전체 사용자
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/1 * * * * echo '1분이 지났습니다.'
#로그 관리 / 로그를 자름...
#Crontab - 각자의 개정
[root@localhost etc]# crontab -e
#로그 관리
부팅 메세지
[root@localhost log]# dmesg
로그
[root@localhost log]# lastlog