First, homework (exercise) content:
1. Summarize the detailed usage method of the task plan (at, crontab) on Linux system;
http://xiexiaojun.blog.51cto.com/2305291/1688068
2, every Monday to Saturday 3:20 A.M., run the CP command to archive the/etc/directory, storage location is/BACKUPS/ETC-YYYY-MM-DD;
2 * * * 1-6/bin/cp-a/etc//backups/etc-$ (date +%f) &>/dev/null
3, every Sunday 2:30 A.M., run the CP command to backup the/etc/fstab file, the storage location is/BACKUP/FSTAB-YYYY-MM-DD-HH-MM-SS;
2 * * * 0/bin/cp-a/etc/fstap/backup/fstab-$ (date +%f-%h-%m-%s) &>/dev/null
4, every night 12 o'clock, get all the lines in the/proc/meminfo file starting with S or M, appended to the/statistics/meminfo.txt file, and the daily message before, to add a similar =============== separator line;
Mkdir/statistics
0 * * * * (/bin/echo "===================" ; /bin/egrep "^ (s| M) "/proc/meminfo ) &>>/statistics/meminfo.txt
20150905-day Course Assignment (scheduled task Mail,at,cron,)