1. tar
[root@sevas ~]# gzip install.log
[root@sevas ~]# bzip2 install.log3
[root@sevas ~]# gzip -d install.log.gz
[root@sevas ~]# bzip2 -d install.log.bz2

[root@sevas ~]# tar cvf etc.tar.gz /etc
[root@sevas ~]# tar xvf etc.tar.gz
[root@sevas ~]# tar cvf bin.tar.gz /bin
[root@sevas ~]# tar xvf bin.tar.gz

2. FIND
[root@sevas ~]# find /home -user t1     t1계정찾기
[root@sevas ~]# find / -name ftp* | more   ftp 로 된거 찾기
[root@sevas ~]# find ~ -perm 644    퍼미션 644 로 된거 찾기
[root@sevas ~]# find /home/t1 -perm 644   
[root@sevas ~]# find /bin -size +10 -size -100k   10kb~100kb 인 파일 검색
exrx        찾은 파일을 대상으로 명령어 실행

[root@sevas work]# find /work -name cent.dat -exec rm {} \; cent.dat라는것 삭제
[root@sevas work]# find /work -perm 644 -exec chmod 777 {} \; 퍼미션644를 777로 변경 
[root@sevas work]# find /work/ -user t1 -exec chown root {} \; 
[root@sevas work]# find /work -name user1.txt -exec gzip {} \;
[root@sevas work]# find /work -name "*.gz" -exrc chown root.t2 {} \; 2>error.txt
[root@sevas work]# find . -name "*.txt" -exec rename .txt .doc {} \; 확장자 변경
[root@sevas work]# find /etc -size +50k > aaa.lst
[root@sevas work]# find . -name "*.gz" -exec gzip -d {} \;  압축풀기

find /work10 -name "*.txt" -exec chown t1.t2 {} \;
find /work /etc -name "*.conf" > conf.txt 2>error.txt

3. cron
1-1
vi /etc/crontab
01 *  *  *  * root run-parts /etc/cron.hourly
02 4  *  *  * root run-parts /etc/cron.daily
03 *  *  *  0 root run-parts /etc/cron.weekly
01 4  1  *  * root run-parts /etc/cron.monthly

1-2
cd /etc/cron.monthly
#touch backup.sh
chmod 755 mackup.sh
vi backup.sh

#!/bin/sh

set $(date)
fname="backup-$2$3.tar.gz"
tar cvf /backup/$fname /home

 

[root@sevas ~]# at now + 2 minutes
at> mkdir /tel/me
at> touch /tellme/morong.txt
at> useradd aaa
at> ls -l /home
at> <EOT>
job 1 at 2015-01-15 04:09
[root@sevas ~]# at -l
1       2015-01-15 04:09 a root


[root@sevas ~]# at now +5 minutes
at> mkdir /yyy
at> cp -r /bin/* /yyy
at> cd /yyy
at> tar cvf bin.tar.gz /bin
at> useradd test11
at> passwd test11
at> 1
at> 1
at> <EOT>

검색할 '단어'를 입력하시고, 엔터를 눌러 주세요.