以/etc/hosts文件為例吧,備份至/tmp目錄下time=`date +%y%m%d` dd if=/etc/hosts of=/tmp/host"$time".bakps:可以用crontab 命令讓腳本定期執行 ???