5.root用戶如何編輯修改test用戶的crontab______
修改 /var/spool/cron/crontabs/test
或是 su - test ; crontab -e
6.源碼安裝軟件時(shí)常有的指令有:______
./configure --參數(shù)
make
make install
#!/bin/bash
Date1=$(date +%H-%M-%S)
for file in `ls /var/log`
do
if [ -f $file ];then
if [ `ls -l $file|awk '{print $5}'` -gt 1000 ];then
tar -zpcv -f $Date1.tar.gz %file
mv $Date1.tar.gz /home/test/
fi
fi
done